This bot allows members of the server to receive roles for the various bosses as well as Imperial Cooking and Crafting in BDO.
This bot was developed with Python 3.8.5.
pip install discord
Rename the config.example.py to config.py and enter your discord bot token after 'discord_token'.
The main reason for this bot is to give members the roles so that the "BDO Timers" bot can mention them when an appropriate event occurs. If you are not using the "BDO Timers" bot, set the corresponding line in the configuration to false!
You can find the BDO Timers Bot here.
To start the bot, simply enter
python3 main.py
After you've started the bot and added it to your server, you can start using it by simply typing !initBdoRoles
in any channel.
The bot must have read and write permissions for this channel! The bot then deletes your message and sends the role-assignment interface.
apt install python3-pip
useradd -r -s /bin/false bdorolesbot`
mkdir /etc/bdoRolesBot
chown -R bdorolesbot:bdorolesbot /etc/bdoRolesBot/
Create a new service file:
nano /etc/systemd/system/bdorolesbot.service
Content of this file:
#!/bin/bash
[Unit]
Description=BDO Roles Discord Bot
After=syslog.target
[Service]
Type=simple
User=bdorolesbot
Group=bdorolesbot
WorkingDirectory=/etc/bdoRolesBot
ExecStart=python3 /etc/bdoRolesBot/main.py
SyslogIdentifier=bdorolesbot
StandardOutput=syslog
StandardError=syslog
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target
If you change something on this file, reload the daemon to apply the changes:
systemctl daemon-reload
Enable and start the service:
systemctl enable bdorolesbot.service
systemctl start bdorolesbot.service
To check the status:
systemctl status bdorolesbot.service