A discord bot who wants you to vote on everything.
 
 
Go to file
michael 15d272b46c Fix mute/kick commands, add async locks, update README 2019-06-28 23:25:21 -07:00
.gitignore mute voting prototype. Full action not done 2019-06-25 14:33:06 -07:00
LICENSE Initial commit 2019-06-24 14:58:04 -07:00
README.md Fix mute/kick commands, add async locks, update README 2019-06-28 23:25:21 -07:00
bot.py Fix mute/kick commands, add async locks, update README 2019-06-28 23:25:21 -07:00
config.json Fix mute/kick commands, add async locks, update README 2019-06-28 23:25:21 -07:00
mute_demo.png Fix mute/kick commands, add async locks, update README 2019-06-28 23:25:21 -07:00

README.md

Karl Marx 2

Karl Marx 2 takes a somewhat different spin on moderation for smaller servers (~10-35 users), handing the controls back to the users themselves. Instead of a single moderator issuing a command to mute, kick or even ban a given user, the choice is left up to anyone and everyone present in the channel. Is the user at hand being annoying or spammy enough to be muted? Are they toxic enough to be kicked/banned? Let's take a vote!

I didn't have as much time as I would have liked to work on this, but even after Hack Week, I intend to progressively flesh out its functionality beyond just moderation and further improve it.

Made with love. Enjoy! :)

Installation

  1. Clone the repo wherever you want and make sure you have python3 installed with the discord.py package. (If you don't then just pip3 install discord.py and you should be good to go!)
  2. Grab the token of your frontend bot application and paste into <path/to/bot>/token.txt.
  3. python3 bot.py

Commands

  • >>manual - Get ye some help
  • >>mute - Hold a 30-second vote to mute a user for 10 minutes (minimum voters: 4, over 50% majority required). You can set different requirements in config.json.
  • >>kick - Kick a user. The vote is up for 5 minutes, and requires that a minimum of 6 users and >50% approve.
  • >>exile - Euphamism for banning a user, I guess. By default, the vote lasts 3 hours, and requires that there be at least 10 votes and a 50% majority. Like the >>mute command, you can also tweak settings in config.json.
  • >>anthem - First verse of the Soviet National Anthem. Might need that at some point to show your communist pride.
  • >>ping - Fun leftovers from when I was first setting up the bot. :P