A discord bot to enforce my sleep schedule.
- Install Python w/ pip (included by default)
- Download discord library:
pip install -U discord.py
- Download dotenv library:
pip install -U python-dotenv
- Create & setup a new bot in the Discord Developer Portal
- Create the data file (details below)
- Run bot:
python ./src/dozer.py
Running Dozer requires a file be added in the same directory as dozer.py
. This file is called .env
and contains the private tokens and server data needed to put you (and your friends) to bed. The format of .env
should be as follows:
# Token created on the Discord Developer Portal
DOZER_TOKEN=<bot token>
# List of unique user ID's to enforce, separated by '.'
DISCORD_ID_LIST='<discord user 1 token>.<discord user 2 token>'
# Bedtimes, in same order as users. '.' delimiter. '-' for no bedtime.
BEDTIME_WEEKDAY_LIST='<weekday bedtime for user 1>.<weekday bedtime for user 2>'
BEDTIME_WEEKEND_LIST='<weekend bedtime for user 1>.-'