Правильное название переменной

This commit is contained in:
JonnyBro 2022-01-05 12:00:37 +05:00
parent c5dd646f67
commit c9aff86edf

View file

@ -49,10 +49,10 @@ module.exports = class {
let i = 0; let i = 0;
setInterval(function () { setInterval(function () {
servers = client.guilds.cache.filter(guild => guild.id != "568120814776614924" && guild.id != "892727526911258654").size; servers = client.guilds.cache.filter(guild => guild.id != "568120814776614924" && guild.id != "892727526911258654").size;
const random = status[parseInt(i, 10)]; const toShow = status[parseInt(i, 10)];
client.user.setActivity(`${random.name} | v${version}`, { client.user.setActivity(`${toShow.name} | v${version}`, {
type: random.type type: toShow.type
}); });
if (status[parseInt(i + 1, 10)]) i++; if (status[parseInt(i + 1, 10)]) i++;