a discord bot that retrieves your Ecole directe homeworks and sends them in a discord channel of your choice
follow this tutorial to create your discord bot.
you must invite the bot on the discord server you want it to send the homeworks!
git clone https://github.com/bonsainoodle/discordDirecte
then run under the discordDirecte
directory
pip install -r requirements.txt
under the discordDirecte
directory, you need to create a config.json
file.
it should look like this:
{
"botToken": "TOKEN",
"botStatus": "STATUS",
"loopDelay": 86400,
"channelId": 123456789101112,
"notifRoleId": 123456789101112,
"ecLogin": "LOGIN",
"ecPassword": "PASSWORD"
}
Key | Description | Default | Required |
---|---|---|---|
botToken | secret token of your discord bot | None | True |
botStatus | discord status of your bot | None | False |
loopDelay | delay in seconds between each message of the bot (everytime the bot runs through the loop, it sends the homeworks for tomorrow) | 86400 (= 24 hours) | False |
channelId | discord id of the channel you want the bot to send the homeworks to | None | True |
notifRoleId | discord id of the role you want the bot to ping when it sends a message | None | False |
ecLogin | your Ecole directe login | None | True |
ecPassword | your Ecole directe password | None | True |
execute the start.py
file at the root of discordDirecte
directory.
python start.py