diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-10-21 22:15:44 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-10-21 22:15:44 -0400 |
| commit | c2828122951a8c6d6d4dce828ac3c4ed7b8c4c86 (patch) | |
| tree | b249fd9908058e7b41e57e2a28f991e6674af0fb | |
| parent | 7614fb34ca512a13aff74834ee6b26eb22299111 (diff) | |
| download | PokeBot-c2828122951a8c6d6d4dce828ac3c4ed7b8c4c86.tar.gz PokeBot-c2828122951a8c6d6d4dce828ac3c4ed7b8c4c86.tar.bz2 PokeBot-c2828122951a8c6d6d4dce828ac3c4ed7b8c4c86.zip | |
Leaving server command
| -rw-r--r-- | commands/Owners Only/leaveguild.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/commands/Owners Only/leaveguild.js b/commands/Owners Only/leaveguild.js new file mode 100644 index 0000000..fe806ca --- /dev/null +++ b/commands/Owners Only/leaveguild.js @@ -0,0 +1,23 @@ +/**************************************** + * + * LeaveGuild: Plugin for Galaxy that leaves a guild + * Copyright (C) 2018 TheEdge, jtsshieh, Alee + * + * Licensed under the Open Software License version 3.0 + * + * *************************************/ +module.exports.run = async (bot, msg) => { + if (!['242775871059001344', '247221105515823104', '236279900728721409', msg.guild.owner.user.id].includes(msg.author.id)) return msg.reply('Nope! You need the person who created this bot or the owner of this guild to use this command.'); + msg.channel.send('Alright, I\'m leaving the server now. Bye everyone!') + msg.guild.leave(); + }; + + exports.conf = { + aliases: [], + guildOnly: true, + }; + exports.help = { + name: 'leaveguild', + description: 'Makes the bot leave the server', + }; + |
