Skip to content

a discord bot that retrieves your Ecole Directe homeworks and sends them in a discord channel of your choice

License

Notifications You must be signed in to change notification settings

bonsainoodle/discordDirecte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discordDirecte

a discord bot that retrieves your Ecole directe homeworks and sends them in a discord channel of your choice

create the discord bot

follow this tutorial to create your discord bot.

you must invite the bot on the discord server you want it to send the homeworks!

installation

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

run the bot

execute the start.py file at the root of discordDirecte directory.

python start.py

license

MIT

About

a discord bot that retrieves your Ecole Directe homeworks and sends them in a discord channel of your choice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages