MollerVictor / Discord-PUG-Bot-.Net

A discord bot for automatic PUGs with stats.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord-PUG-Bot-.Net

How it works

Each user write .add to add themself to the pug.
When the pug is full it chooses 2 captains, it chooses captains by checking the players skillrating and matches played.
Then they pick players they want for their team.
After picking you vote for which map you wanna play, and after that which gamemode to play.
Then you play the pug, then after the pug is done one of the two captains enter which team that won.
And then it gives skillrating and update the stats for everyone that was in the game.

Install

Require MySQL & .NET Core 1.1 or newer

  1. Setup MySQL.
  2. Enter connection details in the config.json file.
  3. Go to https://discordapp.com/developers/docs/intro
  4. Create a new app.
  5. Create a new bot user.
  6. Join the bot to your server. https://www.reddit.com/r/discordapp/comments/4sljmt/how_the_fuck_do_i_make_a_bot_join_a_server/d5ac1ke/
  7. Copy to bot token into "discordBotToken" in the config.json file.
  8. Open the channel you want the bot to be in with your browser.
  9. Then copy the last part of the url, and add it in allowedChannel in config.json file.
    Exemple: https://discordapp.com/channels/298267127004004353/312576903653490690
    Here you should copy 312576903653490690
  10. Now open cmd in the current folder, and run "dotnet DiscordPugBot.dll"
  11. Done! You can now test the bot by writing ".add"
  12. Connect to the MySQL Server with a client, and add maps and gamesmodes rows for the game you are using it for.

Discord.Net Repo
Glicko2 Repo

About

A discord bot for automatic PUGs with stats.

License:MIT License


Languages

Language:C# 100.0%