mirror of
https://github.com/Tribufu/ServerManagers
synced 2026-08-08 12:11:05 +00:00
Nuget package updates
- discord - changes InteractiveBase to ModuleBase
This commit is contained in:
parent
f416b5cd78
commit
e12fd0e6e9
5 changed files with 19 additions and 15 deletions
|
|
@ -33,13 +33,13 @@ namespace ServerManagerTool.DiscordBot.Services
|
|||
throw new Exception("#DiscordBot_MissingTokenError");
|
||||
}
|
||||
|
||||
// Load commands and modules into the command service
|
||||
await _commands.AddModulesAsync(Assembly.GetExecutingAssembly(), _services);
|
||||
|
||||
// Login to discord
|
||||
await _client.LoginAsync(TokenType.Bot, discordToken);
|
||||
// Connect to the websocket
|
||||
await _client.StartAsync();
|
||||
|
||||
// Load commands and modules into the command service
|
||||
await _commands.AddModulesAsync(Assembly.GetExecutingAssembly(), _services);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue