Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

BrammyS/ShardedDiscordBotTemplate

Repository files navigation

.NET Core Build

Discord Bot Template

This is an advanced c# discord bot template. With sharding and EF core and more!

What Bot templates Are Available?

You can switch bot templates by switching branches.

  1. A basic bot with sharding and basic command.
  2. A bot with a database using Entity framework + the same features as template 1.

Cloning

These instructions will get you a copy of the bot up and running on your local machine for development and testing purposes.

  1. Clone one of the bot templates.
  2. Fill in all the Data for your bot in the Constants class.
  3. Start the bot. This will create one or more config files in your debug/release folder of your project.
  4. Please follow the steps below for the bot template that you chose.
    • Basic bot: Add your bot token to the ConfigData.json file.
    • Entity framework bot: Follow the Basic bot steps above + follow the migration steps in the BotContext go to here for more info on migrations.
  5. Enjoy your bot!

Features

Basic bot

image

Entity framework bot

image

Built With

  • Discord.Net - An unofficial .Net wrapper for the Discord API.
  • EF core - The object-relational mapper.
  • Unity - Used for dependency injection.

Authors

  • BrammyS - Initial work - GitHub

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details