@kingsworld/plugin-cron 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
@@ -10,7 +10,7 @@ yarn add @kingsworld/plugin-cron @sapphire/framework
|
|
10
10
|
|
11
11
|
## Usage
|
12
12
|
|
13
|
-
Make sure to register the
|
13
|
+
Make sure to register the plugin before creating the client
|
14
14
|
|
15
15
|
```ts
|
16
16
|
import "@kingsworld/plugin-cron/register";
|
@@ -65,7 +65,7 @@ export class PingPong extends CronTask {
|
|
65
65
|
}
|
66
66
|
```
|
67
67
|
|
68
|
-
Using the
|
68
|
+
Using the class constructor:
|
69
69
|
|
70
70
|
```ts
|
71
71
|
import { CronTask } from "@kingsworld/plugin-cron";
|
@@ -86,7 +86,7 @@ export class PingPong extends CronTask {
|
|
86
86
|
|
87
87
|
### Frequently Asked Questions
|
88
88
|
|
89
|
-
##### What does the `this.info()`, `this.error()`, `this.warn()`, `this.debug()`, and `this.trace()` methods do
|
89
|
+
##### What does the `this.info()`, `this.error()`, `this.warn()`, `this.debug()`, and `this.trace()` methods do in the CronTask#run() method?
|
90
90
|
|
91
91
|
These methods are small helpers towards Sapphire's logger that prefixes logs with `CronTask[$name]`. The helpers are optional, however, I find them useful when using them in my own projects.
|
92
92
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kingsworld/plugin-cron",
|
3
3
|
"description": "A simple @sapphire/framework plugin that aims to make use of the cron package and allow users to make cron jobs within their Sapphire discord bot.",
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.6",
|
5
5
|
"author": "Seren_Modz 21 <seren@kings-world.net>",
|
6
6
|
"license": "MIT",
|
7
7
|
"main": "dist/index.js",
|