private Task Commands_CommandExecuted(CommandExecutionEventArgs e) { e.Context.Client.DebugLogger .LogMessage(LogLevel.Info, "FloppyEars", $"{e.Context.User.Username} successfully executed '{e.Command.QualifiedName}'", DateTime.Now); SelfAudit.LogSomething(e.Context.Member, e.Command.QualifiedName, e.Context.RawArgumentString).ConfigureAwait(false).GetAwaiter().GetResult(); return(Task.CompletedTask); }
private async Task BotClient_Ready(ReadyEventArgs e) { try { await BotClient.SendMessageAsync(await BotClient.GetChannelAsync(326892498096095233), ChatObjects.GetNeutralMessage(@"I'm a bunny.")); await BotClient.SendMessageAsync(await BotClient.GetChannelAsync(214523379766525963), ChatObjects.GetNeutralMessage(@"I'm a bunny.")); } catch { } await SelfAudit.LogSomething(BotClient.CurrentUser, "startup", "n/a"); }