VaraniumSharp.Discord

Build status NuGet Coverage Status

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 and Token properties in the DiscordBotConfig 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.

  • Improve this Doc
Back to top Generated by DocFX