mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
remove reconnect handler
This commit is contained in:
parent
6c21606319
commit
0b68d199d0
1 changed files with 0 additions and 10 deletions
|
|
@ -364,7 +364,6 @@ namespace MareSynchronosServer.Discord
|
|||
discordClient.Ready += DiscordClient_Ready;
|
||||
discordClient.SlashCommandExecuted += DiscordClient_SlashCommandExecuted;
|
||||
discordClient.ModalSubmitted += DiscordClient_ModalSubmitted;
|
||||
discordClient.Disconnected += DiscordClient_Disconnected;
|
||||
|
||||
_timer = new Timer(UpdateStatus, null, TimeSpan.Zero, TimeSpan.FromSeconds(15));
|
||||
|
||||
|
|
@ -372,15 +371,6 @@ namespace MareSynchronosServer.Discord
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
private async Task DiscordClient_Disconnected(Exception arg)
|
||||
{
|
||||
authToken = configuration.GetValue<string>("DiscordBotToken");
|
||||
|
||||
await discordClient.LoginAsync(TokenType.Bot, authToken);
|
||||
await discordClient.StartAsync();
|
||||
}
|
||||
|
||||
private async Task ProcessQueueWork()
|
||||
{
|
||||
verificationTaskCts = new CancellationTokenSource();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue