Sign inSign up

abigaillucas/bat-keeper

By abigaillucas

•Updated over 5 years ago

Private Discord bot.

Image
0

364

abigaillucas/bat-keeper repository overview

⁠Bat Keeper

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.

⁠Commands

?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

⁠Setup

A simple list of commands to build, and run the docker image. Make sure Docker and docker-compose is installed.

  • docker-compose up
  • docker-compose build

Please 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

⁠Softare Versions

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

⁠TODO

  • Implement authorized roles for commands
  • Figure out a way to manage the database if it's already been created

Tag summary

Content type

Image

Digest

Size

345.3 MB

Last updated

over 5 years ago

docker pull abigaillucas/bat-keeper