Skip to content

drawbu/drawbot

Repository files navigation

discord-drawbot

Made by drawbu

Codacy Badge GitHub GitHub code size in bytes GitHub repo size Lines of code GitHub last commit GitHub commit activity

A Pronote notifier discord bot.

We now have a Discord sever! You can join it if you have some questions, some issues or just want to talk about the bot. Click here to join

‼️ Don't try with a wrong username or password too many time, or you can get banned from Pronote
⚠️ We do not take responsibility for a possible leak of your passwords, which is why you need to host the bot yourself.

Some screenshots

Homework message Grade message

Installation

git clone https://github.com/drawbu/drawbot
cd drawbot

pip install -e .

Launch

py drawbot

If you are using a Linux distribution or macOS, you can use the make command to install dependencies and run the bot.

Files documentation

The bot will create 3 json files in the vars folder:

  • devoirs.json
  • grades.json
  • config.json

vars/config.json

This file stocks your private logins and info's to make to bot running. You can find a config.example.json file in the vars folder.

config.json Example

{
    token: "( ͡° ͜ʖ ͡°)",
    channelID: "000000000000000000",
    username: "demonstration",
    password: "pronotevs",
    url: "https://demo.index-education.net/pronote/eleve.html?login=true",
    ping: "<@000000000000000000>"
}

copy that file as config.json and fill in the values as follows:

  • "token": your bot token.
  • "channelID": the ID of the Discord channel.
  • "username": your Pronote username.
  • "password": your Pronote password.
  • "url": the url of your pronote client.
  • "ping": the ping you want to send with the message. It can be a discord user, a role, multiple mentions... Note that mentions should keep discord mentions style (<@user_id> or/and <@&role_id>)

If you can't connect to Pronote, check if your establishment is not using an ENT. In this case, see what you need to do with the help of the pronote wrapper project: pronotepy

Files vars/devoirs.json and vars/grades.json are here to stock what's has been already sent, so you don't need to care about them

Docker

You can also run the bot in a docker container.

You still need to clone the repository, and fill the config.json file.

Then, you can build the image:

docker build -t drawbot .

And run it:

docker run -d -it --rm drawbot