Skip to content

Commit

Permalink
disable database (maybe rework later)
Browse files Browse the repository at this point in the history
  • Loading branch information
AltronMaxX committed Feb 1, 2024
1 parent 7947725 commit 1a8349f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Program()
loggerWebhook = new DiscordWebhookClient(config.loggerWebhookURL);
}

databaseUpdater = new Timer(UserDatabase.timer, new AutoResetEvent(true), 300000, 300000);
//databaseUpdater = new Timer(UserDatabase.timer, new AutoResetEvent(true), 300000, 300000);

if (config.enableRconFunctions)
{
Expand Down Expand Up @@ -84,7 +84,7 @@ public Program()
client.Disconnected += onDisconnected;
client.GuildMemberUpdated += OnUserUpdated.onUpdate;

userDatabase = new UserDatabase(677860751695806515);
//userDatabase = new UserDatabase(677860751695806515);
}
private async Task MainAsync()
{
Expand Down Expand Up @@ -114,12 +114,12 @@ private async Task onReady()

await CommandsHandler.setupCommands();

await userDatabase.initDatabase();
//await userDatabase.initDatabase();
}
private async Task onDisconnected(Exception arg)
{
await Logger.logError(arg.Message + arg.StackTrace);
await userDatabase.saveData();
//await userDatabase.saveData();
}

private async Task MessagesHandler(SocketMessage msg)
Expand Down

0 comments on commit 1a8349f

Please sign in to comment.