Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1020 Bytes

README.md

File metadata and controls

33 lines (19 loc) · 1020 Bytes

Duolingo Domination Discord bot

Table of contents

Architecture

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".

Development

Check out the development framework documentation here.

Build and deploy the app

Deploy to Scaleway cloud functions

Create a zip file using zip -r function.zip . and upload it to the Scaleway console.

In the "handler" field, put Handle.