Skip to content

treierxyz/niiskus-bot

Repository files navigation

niiskus

Discord.js weather bot

GitHub License GitHub Workflow Status (with event) GitHub Container Registry

A Discord.js bot, which replies with relevant weather data according to keywords. "niiskus" is the Estonian word for "humidity".

The data is fetched from the University of Tartu Institute of Physics' weather station, but more data sources may be added in the future.

The concept of the bot started as an inside joke on a Discord server I frequent, which became so commonplace that one day, I got the idea to automate it and create a bot that would reply for me.

Setup

npm and NodeJS (or any other compatible JavaScript package manager/runtime) are required.

Use this environment variable to supply the bot token, either in a .env file or otherwise:

TOKEN=replace.me.pretty.please

The following commands install the dependencies and run the bot in developer mode:

npm install
npm run dev

Docker

You can pull the latest stable release from ghcr.io/treierxyz/niiskus-bot:latest

Alternatively you can use the provided Dockerfile to build an image:

docker build -t treierxyz/niiskus-bot .