Skip to content

JorickPepin/INSA-Planning_Discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A discord bot to import the next day's schedule every day.

Resources

License

Stars

Watchers

Forks

Languages