tweak defaults & fix `manual` command

pull/1/head
michael 2019-06-28 23:37:05 -07:00
parent 15d272b46c
commit 78388397db
3 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@ Karl Marx 2 takes a somewhat different spin on moderation for smaller servers (~
<center><img src="mute_demo.png" width=400/></center>
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.
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 improve its abilities/scalability and even flesh out its functionality beyond just moderation and further improve it.
Made with love. [Enjoy!](https://discordapp.com/oauth2/authorize?client_id=592852914553487370&permissions=8&scope=bot) :)
@ -19,6 +19,6 @@ 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`.
- `>>exile` - Euphamism for banning a user, I guess. By default, the vote lasts 20 minutes, and requires that there be at least 8 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

6
bot.py
View File

@ -42,17 +42,17 @@ async def manual(ctx):
embed = discord.Embed(title="How 2 Comrade")
embed.add_field(
name=">>mute",
value="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`."
value="Hold a {0}-second vote to mute a user for {1} minutes (minimum voters: {2}, over 50% majority required). You can set different requirements in `config.json`.".format(MUTE_VOTE_TIME, int(MUTE_TIME/60), MIN_MUTE_VOTERS)
)
embed.add_field(
name=">>kick",
value="Kick user. The vote is up for 5 minutes, and requires that a minimum of 6 users and >50% approve."
value="Kick user. The vote is up for {0} minutes, and requires that a minimum of {1} users and >50% approve.".format(int(KICK_VOTE_TIME/60), MIN_KICK_VOTERS)
)
embed.add_field(
name=">>exile",
value="Ban user. By default, the vote lasts 3 hours, and requires that there be at least 10 votes and a 50% majority. Like the `>>mute`/`>>kick` commands, you can also tweak settings in `config.json`."
value="Ban user. By default, the vote lasts {0} minutes, and requires that there be at least {1} votes and a 50% majority. Like the `>>mute`/`>>kick` commands, you can also tweak settings in `config.json`.".format(int(BAN_VOTE_TIME/60), MIN_BAN_VOTERS)
)
await ctx.send(embed=embed)

View File

@ -6,6 +6,6 @@
"KICK_VOTE_TIME" : 300,
"MIN_KICK_VOTERS" : 6,
"BAN_VOTE_TIME" : 600,
"BAN_VOTE_TIME" : 1200,
"MIN_BAN_VOTERS" : 8
}