A bot that sends your events for the day from an ical file

Harupi 9bf7ad9f67 Add support of slash commands 7 miesięcy temu
.gitattributes 7821b170cb Initial commit 1 rok temu
.gitignore dd4c0879fa Initial commit 1 rok temu
LICENSE 7821b170cb Initial commit 1 rok temu
README.md 9bf7ad9f67 Add support of slash commands 7 miesięcy temu
day_planning.py 9bf7ad9f67 Add support of slash commands 7 miesięcy temu
main.py 9bf7ad9f67 Add support of slash commands 7 miesięcy temu
requirements.txt 9bf7ad9f67 Add support of slash commands 7 miesięcy temu

README.md

ical-discord-bot


The Ical Discord Bot sends your daily events from an .ics calendar directly to Discord.


Deploy the Bot

  1. Clone this repository.
  2. Create a ".env" file at the root of the project and add the following:

    TOKEN=""
    GUILD=""
    
  3. Create an application on Discord Developer Portal.

    • Go to the Bot section and click Reset Token.
    • Copy the token and paste it into the '.env' file, inside the quotes after "TOKEN=".
  4. Copy the ID of the server where you want to invite the bot.

    • Right-click the server name in the sidebar (with Developer Mode enabled).
    • Paste the ID into the ".env" file, inside the quotes after "GUILD=".
  5. Create a "data" folder at the root of the project and place your calendar file inside.

  6. Rename your calendar file to "cal.ics".

  7. Create a virtual environment and install the dependencies:

    pip install -r requirements.txt
    
  8. Run the main file.

  9. Add the bot to your server.

That’s it! You can now view your events for today using the "/day(today)" command (by default).