diff options
| author | jtsshieh <jtsshieh@outlook.com> | 2018-03-09 20:45:14 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-03-09 20:54:02 -0500 |
| commit | 9547631cfc0ea4067a5a7ada819ea6b3f59a4b09 (patch) | |
| tree | 22bb4d3bcf6adcfe2cfccb1dd07d7cb8cd61a693 /commands/Moderation/timeout.js | |
| parent | 54505ce7eb1aee434a19c5c5bd30f4f7b888c407 (diff) | |
| download | PokeBot-9547631cfc0ea4067a5a7ada819ea6b3f59a4b09.tar.gz PokeBot-9547631cfc0ea4067a5a7ada819ea6b3f59a4b09.tar.bz2 PokeBot-9547631cfc0ea4067a5a7ada819ea6b3f59a4b09.zip | |
Revert "Merge branch 'master' of https://github.com/PokeWorld/PokeBot"
This reverts commit 54505ce7eb1aee434a19c5c5bd30f4f7b888c407.
Diffstat (limited to 'commands/Moderation/timeout.js')
| -rw-r--r-- | commands/Moderation/timeout.js | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/commands/Moderation/timeout.js b/commands/Moderation/timeout.js index c74ecf0..b78e059 100644 --- a/commands/Moderation/timeout.js +++ b/commands/Moderation/timeout.js @@ -18,7 +18,6 @@ * * *************************************/ -<<<<<<< HEAD exports.run = async (bot, msg) => { 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.'); @@ -56,42 +55,3 @@ exports.help = { description: 'Put a user in time-out', usage: '@user', }; -======= -exports.run = async (bot, msg, args) => { - 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?'); - - 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); - msg.guild.channels.find('name', 'logs').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', - }; - ->>>>>>> 4d253ab491041e147e9943d8820ba06f611df2d5 |
