A light-weight, open-source Discord bot written in Discord.js
with TypeScript
that is used to track the number of days since a desired date provided by the user.
The usage is fairly simple - the user simply needs to type the following command in any channel the bot has access to:
@Days Since count <DD:MM:YY>
*where <DD:MM:YY>
is the date to track desired by the user.
Here we display the number of days that have passed since the date provided by the user, namely: 28:01:2022
.
Following the steps below, one is able to run the bot locally on the machine.
# 1. clone the repository
git clone https://github.com/michalspano/days-since.git
# 2. install dependencies (package.json provided)
npm install
# 3. create a .env file in the root directory
# and fill it with the following variables:
# - TOKEN=<your discord bot token>
echo "TOKEN=<your discord bot token>" > .env
# 4. run the bot
npm start