Skip to content

A timer command will help you to generate a message after a specific time.

Notifications You must be signed in to change notification settings

Shedhatch/Timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Timer

A timer command will help you to generate a message after a specific time.

Modules (3)

- npm i discord.js
- npm i node.js
- npm i ms

File

Timer.js should be inserted in your Commands-file

How to use Timer.js ?

  • You'll need to define a prefix
  • Use timer following your prefix
  • Indicate how long you want the timer to last

Global usage:

<your_prefix / timer / timer_period>

Set the timer:

periods = s, m, h, d

s -> seconds
m -> minutes
h -> hours
d -> days

Example (prefix = "/" | time = 24 hours):

/timer 86400s OR /timer 1440m OR /timer 24h OR /timer 1d (will set a new timer for a day)

Version V11 -> V12

  • The following code Is not up to date (running under V11)
  • You can learn more V12 It by following this link

About

A timer command will help you to generate a message after a specific time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published