About Battlemetrics Ban Approval Bot
If your organization has Trial Admins that need to have their bans approved by Admins and higher or by a ban approval team, this Discord bot is for you.
By setting up your organization to require ban approvals for Trial Admins, or Admins in training, you are ensuring that your bans have what is expected of them, that the evidence is good, and that false bans don't happen as often.
This will also help reinforce training among your new staff, and will help them get accustomed to how your organization runs things.
Its easy to use, and can be setup in minutes. Hooks directly into Battlemetrics API, so it'll grab all the ban information for you!
Installation
Before you start, you're going to need a Python bot host. I have hosting available upon request, and can be reach via Discord: @BippyMiester or in our Discord Server: https://discord.gg/CUH3vADmMp
1. Upload the .zip file contents into the root of your Bot Host.
2. Rename the `.env.example` file to just `.env`
3. Fill out the settings. If the variable does not have "" after the equals, do not put quotes around that value...
Example:
What the variable looks like before editing BOT_MANAGER_ROLE_ID= # No Quotes - Good BOT_MANAGER_ROLE_ID=1234567890 # Quotes - Bad BOT_MANAGER_ROLE_ID="1234567890" What the variable looks like before editing BATTLEMETRICS_TOKEN="" # Quotes - Good BATTLEMETRICS_TOKEN="jhklasjdhlfkjhsadlkfjhasd" # No Quotes - Bad BATTLEMETRICS_TOKEN=jhklasjdhlfkjhsadlkfjhasd
4. Start the bot! main.py
Example Config
SERVER_NETWORK_NAME="RustX" DISCORD_API_TOKEN="" BATTLEMETRICS_TOKEN="" PREFIX="." DEBUG_LEVEL="default" BOT_MANAGER_ROLE_ID=123456789 GUILD_ID=123456789 APPROVAL_QUEUE_CHANNEL_ID=123456789 APPROVED_BANS_CHANNEL_ID=123456789 REJECTED_BANS_CHANNEL_ID=123456789 # Leave the variable blank if you have nothing to put there. # Dont put dummy role ids in these fields. APPROVAL_ROLE_1=123456789 APPROVAL_ROLE_2=123456789 APPROVAL_ROLE_3=123456789 APPROVAL_ROLE_4=123456789 APPROVAL_ROLE_5=123456789 APPROVAL_ROLE_6=123456789 APPROVAL_ROLE_7=123456789 DISABLE_BUTTONS_OR_DELETE_MESSAGE="delete" # "Correct Values: disable | delete"
Commands
/ping - Test the bots latency
/ba - Submit a new ban approval request
How to fill out the questions
The first question should be answered with a link that looks like this. /rcon/bans/edit/<insert_id_here>
Send question is what would you like the ban to be extended to, if anything.
Upcoming Features
- Ability to automatically edit the ban from discord by clicking approve
- Add a team tag to the approval queue embeds
- Add certain roles/members to the ban denial thread
- Button to print out the number of bans / the bans themselves for the banned user
- Editable embed - Ability to include or not include certain fields in the embed
-
Open to suggestions for new features as well!