gopnik (funny word + the app is written in Go) is a tiny Discord bot that reminds users about various things they ask it to.
-
Set up an application in Discord Developer Portal and add the bot to your server. Below are the required scopes and permissions. Additionally, you need to enable the Message Content Intent.
-
Clone this repository. The reminders are managed with https://github.com/mattn/go-sqlite3, therefore before installing the dependencies, you need to set the
CGO_ENABLED=1env variable and havegccavailable in your PATH. -
Run
go mod tidyto download and install the dependencies. -
Set the
GOPNIK_TOKENandREMINDERS_CHANNELenvironment variables to your bot's token and the ID of the channel where it should send the reminders, respectively. -
Run
go run .orgo build . && ./gopnik. Errors are written to stderr: I personally redirect them to a file with./gopnik 2>> logs.


