Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 879 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 879 Bytes

Personal project to import the next day's INSA timetable into a discord channel every evening.
The idea comes from this project.

Configuration

The program requires an .env file of the following form at the root of the project:

LOGIN=flastname  # INSA login, usually first letter of first name + last name
PASSWORD=password  # INSA password
YEAR=3  # desired year of the schedule (3, 4 or 5)

DISCORD_TOKEN=XXX  # the token of the bot
DISCORD_CHANNEL_ID=XXX  # the channel id in which the bot must write
LAUNCH_TIME=18:00  # the time at which the timetable should be imported
SKIP_WEEKENDS=TRUE # Add this line if you want to skip weekends

Install the dependencies:

pip install -r requirements.txt

Launch the bot:

python3 src/bot.py

Result

Example