ANF-Studios / SubBot-CS

C# instance of SubBot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SubBot-CS

GitHub top language GitHub GitHub Workflow Status GitHub issues

C# instance of SubBot

Running

  1. Download or clone.
  2. Add appsecrets.json file (with "Copy always" or "Copy if newer" for Copy to Output Directory).
  3. Populate with secrets. See appsecrets-example.json for example.
  4. Build and run.

Usage

Accessing Discord client

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.

License

Copyright (c) 2020 DevSubmarine

Licensed under Apache 2.0 License.

About

C# instance of SubBot

License:Apache License 2.0


Languages

Language:C# 100.0%