This repository is now deprecated, but the bot development isn't stopped completely. There is a completely new version of this bot, with a whole new codebase and much better code: visit https://github.com/Codin-Nerds/Neutron-Bot for the continued version
CommandBot can manage most of your administrative tasks on your server It includes features like:
Using the bot is very simple, to show list of the commands, use !help
If you want to try and run this bot on your own, follow this guide:
pip install pipenv
pipenv sync
BOT_TOKEN="[Your bot token]"
pipenv shell
python -m bot
to run the bot (You have to be in CommandBot/ directory)There is an option to use systemd on Linux to run this bot using the commandbot.service file. This can be good to restart on unexpected crashes, automatic starting on boot of your machine and running in the background.
Note that you need to Install Linux Screen so that you can access the output at any time.\ (If you don't want this, you can adjust the commandbot.service to fit your needs)
sudo ln -s [absolute path to commandbot.service] /etc/systemd/system/commandbot.service
sudo systemctl daemon-reload
sudo systemctl enable commandbot.service
sudo systemctl start commandbot.service
sudo screen -R CommandBot
(Ctrl-A-D
to detach)The bot has a default configuration file default_config.yaml but this config applies for our server, in order to get this to work on your server, you need to create config.yaml file, and add all the config you want to change. (The rest will be taken from default config, no need to retype it.)
It is advised to look at the whole default config and adjust everything you need in the config.yaml file, but the minimum you need to change is this: