From 3b18b66a1e14f142a1b5b5d3c21ae50e486afaa0 Mon Sep 17 00:00:00 2001 From: TheEdgeNK Date: Wed, 11 Jul 2018 11:02:17 -0400 Subject: change currency name and command removal --- commands/Moderation/timeout.js | 48 ------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 commands/Moderation/timeout.js (limited to 'commands/Moderation/timeout.js') diff --git a/commands/Moderation/timeout.js b/commands/Moderation/timeout.js deleted file mode 100644 index 2e479ac..0000000 --- a/commands/Moderation/timeout.js +++ /dev/null @@ -1,48 +0,0 @@ -/** ************************************** - * - * Time Out: Plugin for PokeBot that punishes bad boys.. - * 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 put members in time-out..'); - if (!msg.guild.member(bot.user).hasPermission('MANAGE_ROLES')) return msg.reply('I cannot put anyone in time-out.'); - - const member = msg.mentions.members.first(); - if (!member) return await msg.reply('Who do I put in time-out?'); - - msg.member.addRole(msg.guild.roles.find('name', 'Timeout')); - - const { RichEmbed } = require('discord.js'); - try { - const embed = new RichEmbed() - .setColor(0x00ae86) - .setAuthor(member.user.tag, member.user.avatarURL) - .setTitle(`Time Out: **${member.user.tag}**`) - .setDescription(`*${member.user.tag}* was placed in time-out by *${msg.author.tag}*.`) - .addField('Moderator', msg.author.tag) - .setTimestamp() - .setFooter(`${msg.author.tag} put ${member.user.tag} in time-out.`, 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: 'timeout', - description: 'Put a user in time-out', - usage: '@user', -}; -- cgit v1.2.3