The bot is written in Go. It uses mostly standard libraries but also the Canvas library from Taco de Wolff.
The discord package contains the logic to interact with the Discord API. discord/security.go is here to make request's signature verification easier.
The canvas package is used to draw the leaderboard once the data have been fetched from the Duolingo API. After finishing the drawing, the image is saved to a file named "leaderboard.png".
Check out the development framework documentation here.
Create a zip file using zip -r function.zip .
and upload it to the Scaleway console.
In the "handler" field, put Handle
.