Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.09 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.09 KB

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