A very handy discord bot for people who use moodle for their school and have a discord group! It can display leaderboards, get assignments, get peoples profiles, send messages and the coolest of all, do the quizzes for you!
First, set up your own instance of a discord bot. You need to visit the discord developer portal. After creating the bot, put that token in the example.env
These are so that puppeteer can login to the browser and access the course info, if a user of the bot wants to send messages or do quizzes they must login themselves with the /login command.
Visit mongodb.com and create an account and then set up a free cluster. The website should guide you through all the steps.
The prefix commands have now been deleted in favor for slash commands which are more suited for discords environment. To get a list of all commands use /help, and to get more info on a specific command use /help \
/login first before using commands like message, quiz, etc and logout with /logout
For the quizzes, the autofill will try fetch the correct answers from the database, if they aren't located, it will just give random answers. If the quiz has answers in the database, it should also light the buttons up green or red depending on whether or not you got the answer correct.
Here are a few examples