Skip to content

4dp/sanakan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

707 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sanakan

Build status CodeFactor License

Overcomplicated discord bot built with Discord.NET.

Requirements

  • .NET Core 3.1 SDK

  • MySql Database

  • Shinden API Key

  • Bot token

Setting up

Compilation

  1. Go to src directory
  2. Run make full-build

Configuration

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
    }
  ]
}

Running

Run Run.sh script from src directory.

Runtime configuration

Invite bot to your server and setup it with .mod commands, .mod h will list all moderation commands.

About

Discord bot built with Discord.NET

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9

Languages