Skip to content

Commit

Permalink
⚡️ setting time
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivien Mouret committed Nov 17, 2023
1 parent 8d9e053 commit 56a6e0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/daftbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ class DaftBot {
checkLive = true;
oldUrIMemory = urIMemory;
oldGameMemory = gameMemory;
if (ping) await new Promise(resolve => setTimeout(resolve, 60 * 1000)); // 1 minute
if (ping) await new Promise(resolve => setTimeout(resolve, 60000)); // 1 minute
else {
await new Promise(resolve => setTimeout(resolve, 3600 * 1000)); // 1 heure
await new Promise(resolve => setTimeout(resolve, 3600000)); // 1 heure
ping = true;
};
};
Expand Down
4 changes: 2 additions & 2 deletions core/mobbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class MobBot {
oldGameMemory = gameMemory;

await this.onLiveSponsor();
await new Promise(resolve => setTimeout(resolve, 600000)); // 10 minutes
await new Promise(resolve => setTimeout(resolve, 1800000)); // 30 minutes
};
};

Expand Down Expand Up @@ -371,7 +371,7 @@ class MobBot {
'icon_url': client.user.avatarURL({ format: 'png', dynamic: true, size: 1024 })
},
'footer': {
'text': `Viewers : **${axios.data.data[0].viewer_count}**`,
'text': `Viewers : ${axios.data.data[0].viewer_count}`,
'icon_url': `https://em-content.zobj.net/thumbs/120/microsoft/319/busts-in-silhouette_1f465.png`,
'proxy_icon_url': `https://twitch.tv/${axios.data.data[0].user_login}`
},
Expand Down

0 comments on commit 56a6e0e

Please sign in to comment.