From 9dded7ea4410b98195fe38e3f2729e682d739c1b Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Mon, 17 Sep 2018 16:32:27 +0200 Subject: [PATCH] Adde guild only commands and updated activity of bot --- commands/admin/ban.js | 1 + commands/admin/kick.js | 1 + commands/admin/prune.js | 3 ++- commands/fun/music | 1 + index.js | 2 +- 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/commands/admin/ban.js b/commands/admin/ban.js index 59c259d1..68773257 100644 --- a/commands/admin/ban.js +++ b/commands/admin/ban.js @@ -9,6 +9,7 @@ module.exports = class BanCommand extends Command { guildOnly: true, clientPermissions: ['BAN_MEMBERS'], userPermissions: ['BAN_MEMBERS'], + guildOnly: true, args: [ { key: 'member', diff --git a/commands/admin/kick.js b/commands/admin/kick.js index b6bc805f..00b72ed0 100644 --- a/commands/admin/kick.js +++ b/commands/admin/kick.js @@ -9,6 +9,7 @@ module.exports = class KickCommand extends Command { guildOnly: true, clientPermissions: ['KICK_MEMBERS'], userPermissions: ['KICK_MEMBERS'], + guildOnly: true, args: [ { key: 'member', diff --git a/commands/admin/prune.js b/commands/admin/prune.js index b366f4e8..72f0a8be 100644 --- a/commands/admin/prune.js +++ b/commands/admin/prune.js @@ -8,7 +8,8 @@ module.exports = class PruneCommand extends Command { memberName: 'prune', description: 'Bulk delete messages.', clientPermissions: ['READ_MESSAGE_HISTORY', 'MANAGE_MESSAGES'], - userPermissions: ['MANAGE_MESSAGES'], + userPermissions: ['MANAGE_MESSAGES'], + guildOnly: true, args: [ { key: 'amount', diff --git a/commands/fun/music b/commands/fun/music index be6762f6..959725e5 100644 --- a/commands/fun/music +++ b/commands/fun/music @@ -7,6 +7,7 @@ module.exports = class MusicCommand extends Command { group: 'fun', memberName: 'music', description: 'Play youtube link in vocal', + guildOnly: true, args: [ { key: 'ytblink', diff --git a/index.js b/index.js index 91cba2ad..37a82dba 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,7 @@ client.registry const channel = client.channels.get('487766113292124160'); channel.send(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users. ${client.readyAt}`); - client.user.setActivity('"haha" or @me for help'); + client.user.setActivity('"haha help" or "@me help" for help'); }); // When bot join a guild send embeds with details about it. client.on("guildCreate", guild => {