A Discord bot that allows users to vote to temporarily mute relmin
- Vote-based muting system
- Requires users to be in a designated voice channel to vote
- Configurable vote duration and required vote count
- Automatic unmuting after specified duration
-
Clone this repository
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.envfile based on.env.exampleand fill in your Discord bot configuration:DISCORD_TOKEN: Your Discord bot tokenGUILD_ID: Your server IDTEXT_CHANNEL_ID: ID of the text channel for commandsVOICE_CHANNEL_ID: ID of the voice channel to monitor
-
Run the bot:
python relmin_Mute.py
Use the !muterelmin command in the designated text channel while being in the designated voice channel to start a vote to mute the relmin.
You can modify these variables in relmin_Mute.py:
VOTE_DURATION: How long the vote lasts (default: 30 seconds)REQUIRED_VOTES: Number of votes needed to mute (default: 2)MUTE_DURATION: How long the user stays muted (default: 180 seconds)TARGET_USER_ID: The ID of the user who can be muted (currently relmin)