public async Task MainAsync() { Permissions.Load(); client = new DiscordSocketClient(); handler = new CommandHandler(client, "o!"); await client.SetGameAsync("osu! Stats", "", ActivityType.Watching); await client.LoginAsync(TokenType.Bot, Secret.token); await client.StartAsync(); api = new osuAPI(Secret.apiKey); osu.GetAPI(); Console.WriteLine("Bot Started Sucessfully!", Console.ForegroundColor = ConsoleColor.Green); await Task.Delay(-1, cancelSrc.Token); }
public static void GetAPI() { api = Program.api; }