A simple clock script for your bot to show what time it is in your server | Made with discord.js and moment.js.
Requirements:
- Node.js v12 or higher LTS version;
- Your Discord bot's token;
- your time, of course ;).
Installation:
- Clone or download this repo;
- Open up your terminal or command prompt and navigate to the repo's directory that you've cloned;
- Run
npm install
.
Configuration:
Open config.js
file with your favorite text editor and change all required fields.
Run:
- Open your terminal or command prompt or whatever it is called, navigate (
cd
) to the cloned repo; - Run
node index.js
ornpm start
; - Well, technically you're done!.
The clock is updated every 10 minutes, so it is not up-to-date. Because Discord is now ratelimiting us for 10 minutes to change the channel's name!