Skip to content

hi-rachel/discord-study-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot For Study Club

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.

Setup

  1. Clone the repository and navigate to the project directory.

    git clone https://github.com/hi-rachel/discord-study-bot.git
    cd discord-study-bot
  2. 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`
  3. Install dependencies

     pip install -r requirements.txt
  4. 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
  5. Run the bot

     python bot.py

Inquiry

For bug reports, improvement suggestions, or inquiries about joining the developer book reading study(📚 모각북클럽), please email 📬 rachel.uiux@gmail.com.


License

This repository is MIT licensed.