Skip to content

Discord bot to get the leaderboard of the Duolingo Dominator challenge

Notifications You must be signed in to change notification settings

selfdevs/go-duolingo-domination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Discord bot to get the leaderboard of the Duolingo Dominator challenge

Topics

Resources

Stars

Watchers

Forks

Languages