A Discord bot for managing a developer book club where members gather to study or read development books together.
This bot was created to automate attendance checks when using Discord for study sessions at specific days and times. By creating and setting up an app through discord.dev, downloading this code, and modifying the environment variables to match your conditions, you can conduct attendance checks tailored to each study session.
-
Clone the repository and navigate to the project directory.
git clone https://github.com/hi-rachel/discord-study-bot.git cd discord-study-bot
-
Create a virtual environment:
If Python is not installed on your system, download and install it from the official Python website.
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies
pip install -r requirements.txt
-
Set up your environment variables in a .env file and .config.py file. Here is an example:
.env for secret
DISCORD_TOKEN=your_discord_bot_token
.config.py for public
VOICE_CHANNEL = "attendance_check_channel" CHATTING_CHANNEL = "attendance_result_channel" STUDY_CLUB_NAME = "your_discord_server_name" TARGET_DAYS = ["Sunday", "Monday"] TARGET_HOUR = 21 TARGET_MINUTE = 0
-
Run the bot
python bot.py
For bug reports, improvement suggestions, or inquiries about joining the developer book reading study(📚 모각북클럽), please email 📬 rachel.uiux@gmail.com.
This repository is MIT licensed.