private async Task SetUp_FirstShardConnected(DiscordSocketClient arg) { // Making sure this part only runs once, unless an exception is thrown. Thread safe. if (Interlocked.Exchange(ref Startup, 1) == 0) { try { WebUtil.SetUpDbl(arg.CurrentUser.Id); await StartTimers(); if (!Development) { await Music.Initialize(Client); } await Client.SetActivityAsync(new Game($"Chinese Cartoons. Try @{arg.CurrentUser.Username} help", ActivityType.Watching)); } catch (Exception ex) { Startup = 0; SentrySdk.CaptureException(ex); } } }
public async Task Init([Remainder] string str = "") { await Music.Initialize(Program.GetClient()); await ReplyAsync("Done."); }