✨ Bug fixes & update (v4.0.0)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
module.exports = (client, message) => {
|
||||
if (message.author.bot || message.channel.type === 'dm') return;
|
||||
|
||||
if (message.author.bot) return;
|
||||
|
||||
const prefix = client.config.prefix;
|
||||
const prefix = client.config.discord.prefix;
|
||||
|
||||
if (message.content.indexOf(prefix) !== 0) return;
|
||||
|
||||
@@ -12,5 +11,4 @@ module.exports = (client, message) => {
|
||||
const cmd = client.commands.get(command) || client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(command));
|
||||
|
||||
if (cmd) cmd.execute(client, message, args);
|
||||
|
||||
};
|
||||
@@ -1,7 +1,5 @@
|
||||
module.exports = async (client) => {
|
||||
|
||||
console.log(`Ready on ${client.guilds.cache.size} servers, for a total of ${client.users.cache.size} users`);
|
||||
|
||||
client.user.setActivity(client.config.game);
|
||||
|
||||
client.user.setActivity(client.config.discord.activity);
|
||||
};
|
||||
Reference in New Issue
Block a user