Adde guild only commands and updated activity of bot

This commit is contained in:
Loic Bersier 2018-09-17 16:32:27 +02:00
parent 100bdb0edf
commit 9dded7ea44
5 changed files with 6 additions and 2 deletions

View file

@ -9,6 +9,7 @@ module.exports = class BanCommand extends Command {
guildOnly: true,
clientPermissions: ['BAN_MEMBERS'],
userPermissions: ['BAN_MEMBERS'],
guildOnly: true,
args: [
{
key: 'member',

View file

@ -9,6 +9,7 @@ module.exports = class KickCommand extends Command {
guildOnly: true,
clientPermissions: ['KICK_MEMBERS'],
userPermissions: ['KICK_MEMBERS'],
guildOnly: true,
args: [
{
key: 'member',

View file

@ -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',

View file

@ -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',

View file

@ -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 => {