mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-16 18:56:00 +00:00
Sharding
This commit is contained in:
@ -2,6 +2,7 @@ module.exports = {
|
||||
name: 'message',
|
||||
async execute(client, msg, Discord) {
|
||||
if (msg.author.bot || !msg.guild) return;
|
||||
if (!client.global.db.guilds[msg.guild.id]) return;
|
||||
let prefix = client.global.db.guilds[msg.guild.id].prefix;
|
||||
if (client.config.devMode) prefix = client.config.devPrefix;
|
||||
const args = msg.content.slice(prefix.length).split(' ');
|
||||
|
@ -23,7 +23,7 @@ module.exports = {
|
||||
};
|
||||
});
|
||||
}
|
||||
console.log('- DB Set -');
|
||||
console.log(`- DB Set - Shard: ${client.shard.ids} -`);
|
||||
client.user.setActivity(`@${client.user.username} help | 🎶`, { type: 'LISTENING' });
|
||||
client.user.setStatus('online');
|
||||
const dbl = new DBL(client.config.dblKey, client);
|
||||
@ -36,7 +36,7 @@ module.exports = {
|
||||
});
|
||||
dbl.postStats(client.guilds.size);
|
||||
}
|
||||
console.log('- Activated -');
|
||||
console.log(`- Activated - Shard: ${client.shard.ids} -`);
|
||||
setInterval(async () => {
|
||||
if (client.config.saveDB && !client.config.devMode) {
|
||||
console.log('DB saved');
|
||||
|
Reference in New Issue
Block a user