Skip to content

Commit

Permalink
fix(bot): 🔥 fix
Browse files Browse the repository at this point in the history
Changed a little code and removed unnecessary codes

No breaking changes
  • Loading branch information
binhodev committed Sep 13, 2023
1 parent 589f96e commit 894edde
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/bot/context/idleState.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@ class IdleState extends EventEmitter {
if (currentTime > this.endTime) {
this.stop()
this.emit('idle')
} else if (this.debug) {
return this.emit('debug', () => console.info(this.debugTime()))
} else {
return
this.debugTime()
}
}, 1000)
}

start = () => {
this.stop()
if (!this.timer) {
this.reset()
this.startTimer()
Expand Down

0 comments on commit 894edde

Please sign in to comment.