Skip to content

Commit

Permalink
urgent push
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivien Mouret committed Aug 3, 2023
1 parent db93dd3 commit 1379217
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions core/mobbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ class MobBot {
};
};

this._count++;
if (this.live && this._count % 2 === 0 && this._count >= 8) {

if (this.live && this._rdm < .05) {
await this.mbCommands
.get('timer')
.execute(this.mbClient,
Expand All @@ -185,6 +185,7 @@ class MobBot {
await this.onLastVideo(),
await this.onTimeStamp(),
true);
await new Promise(resolve => setTimeout(resolve, 600000)); // 10 minutes
};

if (regular_users.includes(userstate.username) && _rdm < .005) {
Expand All @@ -196,19 +197,6 @@ class MobBot {
this.mbClient.reply(channel, `ALL SYSTEMS ARE OFFLINE MrDestructoid`, userstate.id)
.catch(e => console.log(e));
};

while (this.live) {
await this.mbCommands
.get('timer')
.execute(this.mbClient,
channel,
message,
userstate,
await this.onLastVideo(),
await this.onTimeStamp(),
true);
await new Promise(resolve => setTimeout(resolve, 600000)); // 10 minutes
};
});
};

Expand Down

0 comments on commit 1379217

Please sign in to comment.