예제 #1
0
 // Initialize Github RPC
 public static void InitializeGitHub()
 {
     try
     {
         StaticReferences.Githubclient = new GitHubClient(new ProductHeaderValue("WolvenKit"))
         {
             Credentials = Github_Helpers.GhubAuth("wolvenbot", "botwolven1")
         };
     }
     catch (Exception e)
     {
         StaticReferences.Logger.Error(e);
     }
 }
예제 #2
0
 /// <summary>
 /// Initialize Github RPC
 /// </summary>
 public static void InitializeGitHub() =>
 StaticReferences.Githubclient =
     new GitHubClient(new ProductHeaderValue("WolvenKit"))
 {
     Credentials = Github_Helpers.GhubAuth("wolvenbot", "botwolven1")
 };