Merge branch 'master' of git@github.com:rhearmas/cardboardbot.git
This commit is contained in:
commit
d7b27bdc5a
4 changed files with 4 additions and 8 deletions
|
@ -1,17 +1,17 @@
|
|||
exports.run = async (client, message, args, level) => {
|
||||
const user = message.mentions.users.first() || client.users.get("username", args[0]).id;
|
||||
parseUser(message, user);
|
||||
|
||||
|
||||
const modlog = client.channels.find('name', config.modLogChannel);
|
||||
const caseNum = await caseNumber(client, modlog);
|
||||
|
||||
|
||||
if (!modlog) return message.reply('I cannot find a valid modlog channel.');
|
||||
if (message.mentions.users.size < 1) return message.reply('You must mention someone to ban them.').catch(console.error);
|
||||
// message.guild.ban(user, 2);
|
||||
|
||||
const reason = args.splice(1, args.length).join(' ') || `Awaiting moderator's input. Use ${settings.prefix}reason ${caseNum} <reason>.`;
|
||||
const embed = new RichEmbed()
|
||||
.setColor(0x00AE86)
|
||||
.setColor(0x2f3136)
|
||||
.setTimestamp()
|
||||
.setDescription(`**Action:** Ban\n**Target:** ${user.tag}\n**Moderator:** ${message.author.tag}\n**Reason:** ${reason}`)
|
||||
.setFooter(`Case ${caseNum}`);
|
||||
|
|
|
@ -8,7 +8,7 @@ exports.run = async (client, message, args, level) => {
|
|||
|
||||
const reason = args.splice(1, args.length).join(' ') || `Awaiting moderator's input. Use ${message.settings.prefix}reason ${caseNum} <reason>.`;
|
||||
const embed = new RichEmbed()
|
||||
.setColor(0x00AE86)
|
||||
.setColor(0x2f3136)
|
||||
.setTimestamp()
|
||||
.setDescription(`**Action:** Warning\n**Target:** ${user.tag}\n**Moderator:** ${message.author.tag}\n**Reason:** ${reason}`)
|
||||
.setFooter(`Case ${caseNum}`);
|
||||
|
|
2
run.bat
2
run.bat
|
@ -1,2 +0,0 @@
|
|||
@echo off
|
||||
node index.js
|
|
@ -1,2 +0,0 @@
|
|||
@echo off
|
||||
node setup.js
|
Loading…
Reference in a new issue