We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dde517 commit de3af74Copy full SHA for de3af74
SyncordBot/Bot.cs
@@ -25,7 +25,6 @@ private async static Task MainAsync()
25
{
26
//Instantiate Logger
27
logger = new Logger();
28
- AppDomain.CurrentDomain.ProcessExit += new EventHandler(BotExiting);
29
30
//Load Discord Bot Configs
31
LoadConfigs();
@@ -62,9 +61,6 @@ private static async Task Discord_Ready(DSharpPlus.EventArgs.ReadyEventArgs e)
62
61
await Client.UpdateStatusAsync(game, UserStatus.Idle, DateTimeOffset.UtcNow);
63
}
64
65
- private static void BotExiting(object sender, EventArgs e)
66
- => logger.FileLogExceptions();
67
-
68
private static void LoadConfigs()
69
70
Configs = new Config();
0 commit comments