コード例 #1
0
ファイル: Initializations.cs プロジェクト: q4a/Wolven-kit
 // 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")
 };