Skip to content
forked from Misha12/GrillBot

Discord bot with features primarily for VUT FIT discord guild.

License

Notifications You must be signed in to change notification settings

qwerelt/GrillBot

 
 

Repository files navigation

GrillBot

Build Status GitHub license Maintenance Code size Repo size

Requirements

Development requirements

Used NuGet packages

Most packages are distributed using the NuGet packaging system and will be installed at build.

Only Discord.NET package is distributed as pre-release from MyGet feed.

GrillBot

Database

GrillBot project using Code first database migrations.

To create database:

dotnet tool restore
dotnet ef database update -- DB_CONN="{YOUR_CONNECTION_STRING}"

Config

  • appsettings.json configuration was deprecated in version 1.8 and removed in 2.0. Newly is used database config in table GlobalConfig and environment or command line parameters.

Choice between command line parameters or environment variables is your. GrillBot supports both.

Configuration variables

  • APP_TOKEN: REQUIRED to run bot. This token you can create in discord developer portal.
  • DB_CONN: REQUIRED to run bot. Connection string to your existing database.

GlobalConfig

Key Description Example value
CommandPrefix Message content, that must starts to invoke command. $
EmoteChain_CheckCount Count of same emotes before bot send emote. 5
ActivityMessage Now playing info. Includes git latest commit, current branch and lastest tag. If you do not want display any test, enter None. Some message
AdminChannel ID of channel for administration purposes. Such as booster notifications. 531058805233156096
ServerBoosterRoleId ID of role with Nitro Server Booster role. 585529323960664074
ErrorLogChannel ID of channel for logging errors. 531058805233156096
Commands for global config control
  • $globalConfig keys - Prints list of available configuration values.
  • $globalConfig get {key} - Prints content of current configuration.
  • $globalConfig set {key} {value} - Sets configuration and saves it.

Run with command line parameters

dotnet run GrillBot.dll -- APP_TOKEN="{YOUR_TOKEN}" DB_CONN="{YOUR_CONNECTION_STRING}"

or

  • Linux:
./GrillBot APP_TOKEN="{YOUR_TOKEN}" DB_CONN="{YOUR_CONNECTION_STRING}"
  • Windows:
GrillBot.exe APP_TOKEN="{YOUR_TOKEN}" DB_CONN="{YOUR_CONNECTION_STRING}"

Features

Docker

Latest tag is published on DockerHub. SQL script with latest DB schema is included in release.

Docker compose

  1. Copy file runtime.example.env with name runtime.env and fill it with your values.
  2. Run docker-compose up in repository root directory.

About

Discord bot with features primarily for VUT FIT discord guild.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 84.0%
  • HTML 15.4%
  • Other 0.6%