-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Discord BOT AdminAFK will make life better for CS:GO Admins
This tool uses :
- Discord server
- eBot 3.1 or newer
- Python 3.6 or >=3.5.3
- Discord.py
- Download or clone –> https://github.com/lyon-esport/Discord-BOT-AdminAFK
- Extract the Discord-BOT-AdminAFK files
- Install the requirements:
pip install -r requirements.txt
- run
make compile
if you want the translation in your language - Create an application here : https://discordapp.com/developers/applications/
- Set the bot as a bot user. This will give you the token.
- Add your bot to your discord (replace 0000000 by your client_id): https://discordapp.com/oauth2/authorize?client_id=0000000&scope=bot&permissions=1
- Edit config.py with the good setting
You should put discord in dev mode (https://support.discordapp.com/hc/fr/articles/206346498-O%C3%B9-trouver-l-ID-de-mon-compte-utilisateur-serveur-message-) then right click on a channel -> copy channel id
You can start the bot with: python main.py
It's recommanded to run the bot in a tmux terminal to prevent problem when disconnecting.
To run the bot in your language, add before the wanted locale, ex:
LANGUAGE="fr_FR" python main.py
If not specified, the bot will use the current locale of the server.
- !help - List of available commands
ADMIN commands
- !disable - Disable command
- !enable - Enable command
- !status - Status of a command
- !purge - Purge messages [2-100]
- !flipcoin - Start a flipcoin (heads/tails)
- !maps - Get five rounds of random maps
- !demo - Generate an URL for download a demo on eBot
- !ping - Test bot connectivity
- !mute - Add the role muted to the user
- !unmute - Remove the role muted to the user
USER commands
- !bracket - Get the link of bracket
- !connect - Get the link of connect team
- !matchs - Get info about matches on eBot
- !participants - Get the link of participants
- !report - Get infos for report a player
- !rules - Get the link of rules
- !gotv - How to watch a demo ?
- !ebot - Get the link of eBot
You can easly add a new language by adding the pybabel package (just do pip install babel
)
and doing this command:
# Add chinese locale
pybabel init -i locale/messages.pot -d locale -l zh_CN
If you add translated string, you can update the catalog with the included makefile
make update
To compile the new catalogs, use:
make compile
The code is under CeCILL license.
You can find all details here: http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html
Copyright © Lyon e-Sport, 2018
Contributor(s):
- Ortega Ludovic - [email protected]
- Etienne Guilluy - [email protected]