aboutsummaryrefslogtreecommitdiff
path: root/commands/Moderation/interrogate.js
diff options
context:
space:
mode:
authorTheEdgeNK <trey6979@gmail.com>2018-06-27 18:11:57 -0400
committerTheEdgeNK <trey6979@gmail.com>2018-06-27 18:11:57 -0400
commitec75863f7b0eeade92d9e921a04ec9ce0511fd88 (patch)
treebda52ea98e4263cc06b6817243c38ff016ff1ea7 /commands/Moderation/interrogate.js
parent6faab8d3e10049ab0d6f0592e10e66b0624e9161 (diff)
downloadPokeBot-ec75863f7b0eeade92d9e921a04ec9ce0511fd88.tar.gz
PokeBot-ec75863f7b0eeade92d9e921a04ec9ce0511fd88.tar.bz2
PokeBot-ec75863f7b0eeade92d9e921a04ec9ce0511fd88.zip
welcome to 2.0 alpha 12.0_a1
Diffstat (limited to 'commands/Moderation/interrogate.js')
-rw-r--r--commands/Moderation/interrogate.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/commands/Moderation/interrogate.js b/commands/Moderation/interrogate.js
deleted file mode 100644
index 821c93a..0000000
--- a/commands/Moderation/interrogate.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/** **************************************
- *
- * Interrogate: Plugin for PokeBot that allows the staff to investigate the fish :cod:
- * Copyright (C) 2018 TheEdge, jtsshieh, Alee
- *
- * Licensed under the Open Software License version 3.0
- *
- * *************************************/
-
-exports.run = async (bot, msg) => {
- if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!');
-
- if (!msg.member.hasPermission('BAN_MEMBERS')) return msg.reply('You don\'t have permission to interrogate others. Rip-off detectives...');
- if (!msg.guild.member(bot.user).hasPermission('MANAGE_ROLES')) return msg.reply('I cannot interrogate anyone.');
-
- const member = msg.mentions.members.first();
- if (!member) return await msg.reply('Who shall I interrogate? (Remember to @mention them)');
-
- member.addRole(msg.guild.roles.find('name', 'Interrogation'));
-
- const { RichEmbed } = require('discord.js');
- try {
- const embed = new RichEmbed()
- .setColor(0x00ae86)
- .setAuthor(member.user.tag, member.user.avatarURL)
- .setTitle(`Interrogation: **${member.user.tag}**`)
- .setDescription(`*${member.user.tag}* was interrogated by *${msg.author.tag}*.`)
- .addField('Moderator', msg.author.tag)
- .setTimestamp()
- .setFooter(`${msg.author.tag} interrogated ${member.user.tag}.`, msg.author.avatarURL);
- const logChannel = await bot.plugins.settings.getStr('logs', msg.guild.id);
- msg.guild.channels.find('id', logChannel).send({ embed });
- }
- catch (err) {
- console.error(err.stack);
- }
-};
-
-exports.conf = {
- aliases: [],
- guildOnly: true,
-};
-
-exports.help = {
- name: 'interrogate',
- description: 'Interrogate a suspect/user.',
- usage: '@user',
-};