Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
trey is dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsshieh committed Mar 12, 2018
1 parent 37e5396 commit 908bec2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions commands/Moderation/ban.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ exports.run = async (bot, msg, args) => {
.addField('Moderator', msg.author.tag)
.setTimestamp()
.setFooter(`${msg.author.tag} banned ${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) {
Expand Down
3 changes: 2 additions & 1 deletion commands/Moderation/interrogate.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

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.');

Expand All @@ -39,6 +39,7 @@ exports.run = async (bot, msg) => {
.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) {
Expand Down
3 changes: 2 additions & 1 deletion commands/Moderation/jail.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

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 jail.');
if (!msg.guild.member(bot.user).hasPermission('MANAGE_ROLES')) return msg.reply('I cannot put anyone in jail.');

Expand All @@ -39,6 +39,7 @@ exports.run = async (bot, msg) => {
.addField('Moderator', msg.author.tag)
.setTimestamp()
.setFooter(`${msg.author.tag} put ${member.user.tag} in jail.`, msg.author.avatarURL);
const logChannel = await bot.plugins.settings.getStr('logs', msg.guild.id);
msg.guild.channels.find('id', logChannel).send({ embed });
}
catch (err) {
Expand Down
1 change: 1 addition & 0 deletions commands/Moderation/softban.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ exports.run = async (bot, msg, args) => {
.addField('Moderator', msg.author.tag)
.setTimestamp()
.setFooter(`${msg.author.tag} softbanned ${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) {
Expand Down
3 changes: 2 additions & 1 deletion commands/Moderation/timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

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.');

Expand All @@ -39,6 +39,7 @@ exports.run = async (bot, msg) => {
.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) {
Expand Down
1 change: 1 addition & 0 deletions commands/Moderation/warn.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ exports.run = async (bot, msg, args) => {
}

const { RichEmbed } = require('discord.js');
const logChannel = await bot.plugins.settings.getStr('logs', msg.guild.id);
bot.channels.find('id', logChannel).send(
new RichEmbed()
.setColor(0x00ae86)
Expand Down

0 comments on commit 908bec2

Please sign in to comment.