forked from Supositware/Haha-Yes
Adde guild only commands and updated activity of bot
This commit is contained in:
parent
100bdb0edf
commit
9dded7ea44
5 changed files with 6 additions and 2 deletions
|
@ -9,6 +9,7 @@ module.exports = class BanCommand extends Command {
|
|||
guildOnly: true,
|
||||
clientPermissions: ['BAN_MEMBERS'],
|
||||
userPermissions: ['BAN_MEMBERS'],
|
||||
guildOnly: true,
|
||||
args: [
|
||||
{
|
||||
key: 'member',
|
||||
|
|
|
@ -9,6 +9,7 @@ module.exports = class KickCommand extends Command {
|
|||
guildOnly: true,
|
||||
clientPermissions: ['KICK_MEMBERS'],
|
||||
userPermissions: ['KICK_MEMBERS'],
|
||||
guildOnly: true,
|
||||
args: [
|
||||
{
|
||||
key: 'member',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
2
index.js
2
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 => {
|
||||
|
|
Loading…
Reference in a new issue