discord_bot/server/ready.js
SileNce5k a54361c571
All checks were successful
CI / CI (push) Successful in 1m23s
Add basic cpu info to processInfo global
2025-05-12 01:40:26 +02:00

18 lines
657 B
JavaScript

const loadServerPrefixes = require('../util/loadServerPrefixes');
const checkTimer = require('../util/timer/checkTimer');
const updatePresence = require('../util/updatePresence');
const updateCpuPercentage = require('../util/updateCpuPercentage')
module.exports = function(client, enableLoginMessage, loginChannel, loginMessage) {
updatePresence(client)
console.log('Ready!');
if (enableLoginMessage === true)
try{
client.channels.cache.get(loginChannel).send(loginMessage)
}catch(err){
console.log("Failed trying to send a message on login.\n")
}
loadServerPrefixes(client)
checkTimer(client);
updateCpuPercentage(client.processInfo);
}