Skip to content

Commit 7998fca

Browse files
committed
[FIX] added a stupid async on cron
1 parent e410302 commit 7998fca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

alice/scripts/cron.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,9 @@ _--d -> define um intervalor de dias_
199199
return this._default()
200200
}
201201

202-
main() {
203-
if (await chattools.isAdm(this.message)) {
202+
async main() {
203+
let isAdm = await chattools.isAdm(this.message)
204+
if (isAdm) {
204205
return this.code()
205206
}
206207

0 commit comments

Comments
 (0)