Skip to content

A discord bot that send you your homeworks/timetables automatically !

Notifications You must be signed in to change notification settings

enzomtpYT/Python-Pronote-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python-Pronote-Bot

Python-Pronote-Bot is a discord bot that fetch Pronote infos (like homeworks and timetables)

Installation

You will need a local Pronote Api Server to use the bot

Using git :

git clone https://github.com/enzomtpYT/Python-Pronote-Bot.git

Usage

Configure the bot

In config.json

{
    "pronoteurl": "YOUR_PRONOTE_URL",
    "discord": {
        "discordtoken": "YOUR_DISCORD_TOKEN",
        "guildid": [YOUR_GUILD_ID],
        "sendmenu": true,
        "menuchannel": "CHANNEL_TO_SEND_MENU"
    },
    "group": {
        "1": {
            "username": "USERNAME_FOR_GROUP1",
            "password": "PASSWORD_FOR_GROUP1",
            "homeworks": "CHANNEL_TO_SEND_HOMEWORKS_FOR_GROUP1",
            "timetables": "CHANNEL_TO_SEND_TIMETABLES_FOR_GROUP1"
        },
        "2": {
            "username": "USERNAME_FOR_GROUP2",
            "password": "PASSWORD_FOR_GROUP2",
            "homeworks": "CHANNEL_TO_SEND_HOMEWORKS_FOR_GROUP2",
            "timetables": "CHANNEL_TO_SEND_TIMETABLES_FOR_GROUP2"
        }
    }
}

Start the bot

In the bot folder open a terminal and do :

On windows :

py Client.py

On linux :

python3 Client.py

Use the bot

Commands :

  • Timetables ( With cancelled classes )
  • Homeworks

Auto messages (DM or Channel) :

  • Timetables ( With cancelled classes ) every morning
  • Homeworks every afternoon

License

MIT