mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Memory Leak Counter
This commit is contained in:
@@ -107,6 +107,10 @@ client.setTimeout(() => {
|
||||
process.exit(0);
|
||||
}, 14400000);
|
||||
|
||||
client.setInterval(() => {
|
||||
console.log(`Shard ${client.shard.id} using ${process.memoryUsage().heapUsed} Bytes of Memory.`);
|
||||
}, 60000);
|
||||
|
||||
client.on('ready', () => {
|
||||
console.log(`[Ready] Shard ${client.shard.id} Logged in!`);
|
||||
client.user.setGame(`;help | Shard ${client.shard.id}`);
|
||||
|
||||
Reference in New Issue
Block a user