aboutsummaryrefslogtreecommitdiff
path: root/commands/Moderation
diff options
context:
space:
mode:
authorpokesudenk <thisis@notarealema.il>2018-02-25 13:08:19 -0500
committerpokesudenk <thisis@notarealema.il>2018-02-25 13:08:19 -0500
commit060792543b25e8194d9a5687392a743fae5c5f6d (patch)
tree5b583cb6988107ddc406d91568c2c90d993225ee /commands/Moderation
parent815230a264de36f692a5754ccd00054ff48347d9 (diff)
downloadPokeBot-060792543b25e8194d9a5687392a743fae5c5f6d.tar.gz
PokeBot-060792543b25e8194d9a5687392a743fae5c5f6d.tar.bz2
PokeBot-060792543b25e8194d9a5687392a743fae5c5f6d.zip
TradeGym plugin + license info
Diffstat (limited to 'commands/Moderation')
-rw-r--r--commands/Moderation/ban.js20
-rw-r--r--commands/Moderation/kick.js20
-rw-r--r--commands/Moderation/purge.js20
-rw-r--r--commands/Moderation/softban.js20
-rw-r--r--commands/Moderation/warn.js20
5 files changed, 100 insertions, 0 deletions
diff --git a/commands/Moderation/ban.js b/commands/Moderation/ban.js
index 3582bc3..cbd8875 100644
--- a/commands/Moderation/ban.js
+++ b/commands/Moderation/ban.js
@@ -1,3 +1,23 @@
+/****************************************
+ *
+ * Ban: Plugin for PokeBot that performs moderation actions.
+ * Copyright (C) 2018 TheEdge, jtsshieh, Alee
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * *************************************/
+
exports.run = async (bot, msg, args) => {
if (!msg.member.hasPermission('BAN_MEMBERS')) return msg.reply('You don\'t have permssion to ban members.');
if (!msg.guild.member(bot.user).hasPermission('BAN_MEMBERS')) return msg.reply('I don\'t have permssion to ban members.');
diff --git a/commands/Moderation/kick.js b/commands/Moderation/kick.js
index 040abb5..4f01fd3 100644
--- a/commands/Moderation/kick.js
+++ b/commands/Moderation/kick.js
@@ -1,3 +1,23 @@
+/****************************************
+ *
+ * Kick: Plugin for PokeBot that performs moderation actions.
+ * Copyright (C) 2018 TheEdge, jtsshieh, Alee
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * *************************************/
+
exports.run = async (bot, msg, args) => {
if (!msg.member.hasPermission('KICK_MEMBERS')) return msg.reply('You don\'t have permssion to kick members.');
if (!msg.guild.member(bot.user).hasPermission('KICK_MEMBERS')) return msg.reply('I don\'t have permssion to kick members.');
diff --git a/commands/Moderation/purge.js b/commands/Moderation/purge.js
index 0540bb3..aab8d59 100644
--- a/commands/Moderation/purge.js
+++ b/commands/Moderation/purge.js
@@ -1,3 +1,23 @@
+/****************************************
+ *
+ * Purge: Plugin for PokeBot that performs moderation actions.
+ * Copyright (C) 2018 TheEdge, jtsshieh, Alee
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * *************************************/
+
exports.run = async (bot, msg, args) => {
if (!msg.member.hasPermission('MANAGE_MESSAGES')) return msg.reply('You don\'t have permssion to manage messages.');
if (!msg.guild.member(bot.user).hasPermission('MANAGE_MESSAGES')) return msg.reply('I don\'t have permssion to manage messages.');
diff --git a/commands/Moderation/softban.js b/commands/Moderation/softban.js
index f95e3b8..b91cadf 100644
--- a/commands/Moderation/softban.js
+++ b/commands/Moderation/softban.js
@@ -1,3 +1,23 @@
+/****************************************
+ *
+ * SoftBan: Plugin for PokeBot that performs moderation actions.
+ * Copyright (C) 2018 TheEdge, jtsshieh, Alee
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * *************************************/
+
exports.run = async (bot, msg, args) => {
if (!msg.member.hasPermission('BAN_MEMBERS')) return msg.reply('You don\'t have permssion to ban members.');
if (!msg.guild.member(bot.user).hasPermission('BAN_MEMBERS')) return msg.reply('I don\'t have permssion to ban members.');
diff --git a/commands/Moderation/warn.js b/commands/Moderation/warn.js
index 75d586c..19f61b5 100644
--- a/commands/Moderation/warn.js
+++ b/commands/Moderation/warn.js
@@ -1,3 +1,23 @@
+/****************************************
+ *
+ * Warn: Plugin for PokeBot that performs moderation actions.
+ * Copyright (C) 2018 TheEdge, jtsshieh, Alee
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * *************************************/
+
exports.run = (bot, msg, args) => {
if (!msg.member.hasPermission('MANAGE_MESSAGES')) return msg.reply('You don\'t have permssion to warn.');
args.shift();