C# instance of SubBot
- Download or clone.
- Add
appsecrets.json
file (with "Copy always" or "Copy if newer" for Copy to Output Directory). - Populate with secrets. See appsecrets-example.json for example.
- Build and run.
Currently the bot uses a DiscordSocketClient wrapped into IHostedDiscordClient to allow use with .NET Generic Host DI container. To access the client, simply use Constructor Injection in your service.
Injecting of DiscordSocketClient or IDiscordClient instead of IHostedDiscordClient is also supported to provide easier use of the client - each of these injections will return the same instance of the Discord client.
Copyright (c) 2020 DevSubmarine
Licensed under Apache 2.0 License.