Overcomplicated discord bot built with Discord.NET.
-
.NET Core 3.1 SDK
-
MySql Database
-
Shinden API Key
-
Bot token
- Go to
src
directory - Run
make full-build
Create file named Config.json
in the src
directory and paste config from below with replaced []
into the actual data and without comments.
{
"Prefix": ".",
"BotToken": "[your_bot_toekn]",
"Supervision": true, // enable flood/spam supervision
"Demonization": false, // exit app if it detects discord timeout
"SafariEnabled": false, // generate cards from user msgs
"ConnectionString": "[connection string to mysql db]",
"Shinden": {
"Token": "[shinden api key]",
"UserAgent": "[user name]"
},
"CharPerPacket": 20000, // char for one cards packet
"Exp": {
"CharPerPoint": 60, // char cnt for one exp point
"MinPerMessage": 0.00005, // min exp from one msg
"MaxPerMessage": 5 // max exp from one msg
},
"Dev": [
[user id] // allows use .dev cmd
],
"BlacklistedGuilds": [
[guild id] // ignore guilds
],
"Jwt": {
"Key": "[key]",
"Issuer": "[name]"
},
"ApiKeys": [
{
"Key": "[key]",
"Bearer": "[name]"
}
],
"RMConfig": [ // bot messages sent by rest api
{
"RoleId": [role id to mention],
"GuildId": [guild where post msg],
"ChannelId": [channel where post msg],
"Type": "News" // msg type
}
]
}
Run Run.sh
script from src
directory.
Invite bot to your server and setup it with .mod
commands, .mod h
will list all moderation commands.