@kingsworld/plugin-cron 1.0.7 → 1.0.8
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 +6 -6
- package/package.json +4 -5
package/README.md
CHANGED
@@ -86,18 +86,18 @@ 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 in the CronTask
|
89
|
+
##### What does the `this.info()`, `this.error()`, `this.warn()`, `this.debug()`, and `this.trace()` methods do in the CronTask class?
|
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
|
|
93
93
|
```ts
|
94
94
|
export class PingPong extends CronTask {
|
95
95
|
run() {
|
96
|
-
this.info("Ping Pong! 🏓"); //
|
97
|
-
this.error("Ping Pong! 🏓"); //
|
98
|
-
this.warn("Ping Pong! 🏓"); //
|
99
|
-
this.debug("Ping Pong! 🏓"); //
|
100
|
-
this.trace("Ping Pong! 🏓"); //
|
96
|
+
this.info("Ping Pong! 🏓"); // INFO - CronTask[ping] Ping Pong! 🏓
|
97
|
+
this.error("Ping Pong! 🏓"); // ERROR - CronTask[ping] Ping Pong! 🏓
|
98
|
+
this.warn("Ping Pong! 🏓"); // WARN - CronTask[ping] Ping Pong! 🏓
|
99
|
+
this.debug("Ping Pong! 🏓"); // DEBUG - CronTask[ping] Ping Pong! 🏓
|
100
|
+
this.trace("Ping Pong! 🏓"); // TRACE - CronTask[ping] Ping Pong! 🏓
|
101
101
|
}
|
102
102
|
}
|
103
103
|
```
|
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.8",
|
5
5
|
"author": "Seren_Modz 21 <seren@kings-world.net>",
|
6
6
|
"license": "MIT",
|
7
7
|
"main": "dist/index.js",
|
@@ -31,12 +31,11 @@
|
|
31
31
|
"esm:default": "gen-esm-wrapper dist/index.js dist/index.mjs"
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
|
-
"cron": "^2.
|
35
|
-
"tslib": "^2.6.
|
34
|
+
"cron": "^2.4.0",
|
35
|
+
"tslib": "^2.6.1"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
|
-
"@types/
|
39
|
-
"@types/node": "^20.4.2",
|
38
|
+
"@types/node": "^20.4.5",
|
40
39
|
"gen-esm-wrapper": "^1.1.3",
|
41
40
|
"typescript": "^5.1.6"
|
42
41
|
},
|