Remake of Jake Arent's Indexbot in Python 3.10 with my home-made Tiny Query Database.
A discord bot for creating hidden roles that still ping users.
Requirements are in the requirements.txt
Requires a bot to be made with the following permissions: bot
, applications.commands
.
Configuration is done via creation of a file titled .env
in the same folder as the python script. This file is required to configure the bot.
You can register bot commands in your server after adding the bot by typing $register
in the chat.
Tests can be run using behave
which is a behavioral driven testing framework. See examples in the features
folder.
# <bot_directory>/.env
# defaults are indicated by filled values, required values are indicated by `?`
# syntax: `<identifier>=<value>`. Comments can be made with '#'
# these values are sensitive to trailing spaces!
# bot token to authenticate (required)
BOT_TOKEN=?
# database file location (optional)
# can be set to ':memory:' to make a non-persistent bot
BOT_ROLES_DB=roles.db