On your server you create
Can ban roles for your mods and
Warned punishment roles.
None of the roles need to have any special permissions (though you'd probably want the mute role to mute people).
Giving someone the
Moderator role will allow them to mute and warn users, and adding the "Can kick/ban" roles will do the obvious.
All actions will be logged in a channel you choose with reasons (that can contain images).
Note: before the bot is invited to your server the page will say "ERROR". If it does not go away after the bot joins your server (and you refresh the page) something is wrong.
Your bot will go to sleep if the status page is not checked in ~30 mins. To wake up your bot just open the page (whatyoucalledtheapp.herokuapp.com).
Requirements: Java 8 JDK & git
git clone https://github.com/MacDue/BanUtil cd BanUtil ./gradlew stage
Config: edit the exports at the start of
You should end up with something like this:
export TOKEN="MzM4Dz0PzIfUofQ.Hw2MKNcMDzs__.0SNsT7dyEn1zrg058NQAUgYxOb5XZ" export MOD_ROLE_ID=355416210822922241 export CAN_BAN_ROLE_ID=355414578974162945 export CAN_KICK_ROLE_ID=355414612948025345 export WARNING_ROLE_ID=355414676819017729 export MUTE_ROLE_ID=355414636700499970 export LOG_CHANNEL_ID=323923806223597569 export SERVER_ID=148403597464436736 export OWNER_ID=132315148487622656 export RESTART_COMMAND="sh run_local.sh"
If you want the status page from the Heroku deploy add the following to the start of your run script:
export ENABLE_WEB=true export PORT=80
Restart the bot and you should see the status page on
localhost / your ip.
A simple way to get role IDs is to make the role mentionable then type
\@Role. It should show something like
<@&355471059698319363> when after you send the message. The ID is the nunber between
>. To find other IDs enable developer mode (under settings -> appearance), then copy IDs with the context menu.