Skip to content

ANF-Studios/SubBot-CS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%