mirror of
https://github.com/arthur-pbty/selfbot-discord.git
synced 2026-06-13 23:58:22 +02:00
carrige bug si il y a trop de task
This commit is contained in:
@@ -17,7 +17,12 @@ module.exports = {
|
|||||||
rows.forEach((row: any) => {
|
rows.forEach((row: any) => {
|
||||||
tasks += `\n- ${row.id} - ${row.name} : ${row.time} minutes`;
|
tasks += `\n- ${row.id} - ${row.name} : ${row.time} minutes`;
|
||||||
});
|
});
|
||||||
message.edit(`# Liste des tâches :${tasks}`);
|
|
||||||
|
const tasksChunks = tasks.match(/.{1,2000}/g);
|
||||||
|
|
||||||
|
tasksChunks.forEach((chunk: string) => {
|
||||||
|
message.edit(`# Liste des tâches :${chunk}`);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user