Skip to content

Commit e410302

Browse files
committed
[FIX] cron command now works only for adms
1 parent 836b6c2 commit e410302

File tree

3 files changed

+120
-1
lines changed

3 files changed

+120
-1
lines changed

alice/scripts/cron.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ _--d -> define um intervalor de dias_
200200
}
201201

202202
main() {
203-
if (chattools.isAdm(this.message)) {
203+
if (await chattools.isAdm(this.message)) {
204204
return this.code()
205205
}
206206

package-lock.json

Lines changed: 118 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"license": "ISC",
1111
"dependencies": {
1212
"axios": "^0.21.1",
13+
"cheerio": "^1.0.0-rc.5",
1314
"jssoup": "0.0.12",
1415
"qrcode-terminal": "^0.12.0",
1516
"whatsapp-web.js": "^1.12.5"

0 commit comments

Comments
 (0)