Skip to content

A light-weight Discord bot displaying the number of days *since* <DATE>.

Notifications You must be signed in to change notification settings

michalspano/days-since

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Days Since – the Discord Bot
logo

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.

Usage

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.

Bot usage

Demo

Here we display the number of days that have passed since the date provided by the user, namely: 28:01:2022.

Bot demo

Running locally

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

About

A light-weight Discord bot displaying the number of days *since* <DATE>.

Topics

Resources

Stars

Watchers

Forks