Genote Bot is a Discord bot that notifies users whenever a new grade is published on a student's Genote account.
Genote is Université de Sherbrooke's online plateform for publishing and accessing students grades.
- Install Node.js v20.11.0 or higher
- Open the terminal and run the following commands
git clone https://github.com/gabrieldrouin/genote-bot.git
cd genote-bot
npm install
- Wait for all the dependencies to be installed
- Rename
config.js.example
toconfig.js
- From Discord's developer portal, create a new application
- In the left column, select
Bot
, thenReset Token
- In
config.js
, insert the new Token in thediscordBotToken
field - From the developer portal, in the left column, select
OAuth2
- In the OAuth2 URL Generator section, select
bot
, then below, selectSend Messages
andRead Message History
- Navigate to the generated URL below and add the bot to your server
- From Discord, in
User Settings
, selectAdvanced
and activateDeveloper Mode
- From your Discord server, right-click your preferred text channel and select
Copy Channel ID
- In
config.js
, insert the Channel ID in thechannelID
field - Save and exit
config.js
- From the terminal, type
node app.js
to start the bot
Optionally:
- In
config.js
, setrestartChromePrompt
tofalse
if your chrome instance is already running with remote debugging on port 9222 and if you are already logged into Genote.