This is a simple bot for pulling a name out of a hat. It pulls a list of people based on their role and chooses the amount passed.
?help - gives help on the uses of this bot
?pickme {number} {role} - returns random members that has viewing permissions
?offline {role} - returns all of the members that are offline
A simple list of commands to build, and run the docker image. Make sure Docker and docker-compose is installed.
docker-compose updocker-compose buildPlease note that the build will fail if you do not have a .env file in the root directory of this project. This file should simply contain the token for the bot.
Example of how the .env should look like:
DISCORD_TOKEN=this-text-should-be-the-token
MYSQL_HOST=host
MYSQL_USER=user
MYSQL_PASSWORD=mysql-password
MYSQL_DB=database-name
Python
Python3
Docker and docker-compose
Docker version 19.03.6, build 369ce74a3c
docker-compose version 1.21.2, build a133471
MySQL
mysql:5.7
Content type
Image
Digest
Size
345.3 MB
Last updated
over 5 years ago
docker pull abigaillucas/bat-keeper