VaraniumSharp.Discord
VaraniumSharp.Discord is a VaraniumSharp add-on that wraps around Discord.Net that implements all logic required to manage a basic Discord socket bot. This leaves only the creation of commands to the implementer without the bot management boilerplate code having to be rewritten.
Requirements
- Dependency Injection container that implements IServiceProvider as it is used by the bot to resolve commands
- Implementer must set the
TokenType
andToken
properties in theDiscordBotConfig
class - [Optional] Implement custom
IDiscordBotConfig
that loads config values from custom provider
Logging
The framework uses the VaraniumSharp StaticLogger
for logging log messages from Discord. The StaticLogger
uses Microsoft.Extensions.Logging.Abstractions for logging so any logger that has a provider
for it (like Serilog.Extensions.Logging) can be used to get the log messages.