Fix Stuff

This commit is contained in:
Daniel Odendahl Jr
2017-06-09 00:32:03 +00:00
parent c26f048911
commit 212ed27e3b
49 changed files with 385 additions and 396 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = class CleverbotCommand extends Command {
]
});
this.clevs = new Cleverbot.Client({
this.clevs = new Cleverbot({
key: CLEVS_KEY,
user: CLEVS_USER,
nick: CLEVS_NICK
+1 -1
View File
@@ -39,6 +39,6 @@ module.exports = class MemeCommand extends Command {
run(msg, args) {
const { type, top, bottom } = args;
return msg.say({ files: [`https://memegen.link/${type}/${top}/${bottom}.jpg`] });
return msg.say(`https://memegen.link/${type}/${top}/${bottom}.jpg`);
}
};
+1 -2
View File
@@ -1,5 +1,4 @@
const Command = require('../../structures/Command');
const path = require('path');
module.exports = class SpamCommand extends Command {
constructor(client) {
@@ -13,6 +12,6 @@ module.exports = class SpamCommand extends Command {
}
run(msg) {
return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'spam.png')] });
return msg.say('https://i.imgur.com/arx7GJV.jpg');
}
};
+2 -5
View File
@@ -25,12 +25,9 @@ module.exports = class StarCommand extends Command {
async run(msg, args, reaction) {
const { id } = args;
const channel = msg.guild.channels.get(msg.guild.settings.get('starboard'));
if (!channel || this.starred.includes(id)) return null;
if (!channel.permissionsFor(this.client.user).has('SEND_MESSAGES')) return null;
if (!channel || !channel.permissionsFor(this.client.user).has('SEND_MESSAGES') || this.starred.includes(id)) return null;
const message = await msg.channel.fetchMessage(id);
if (!reaction && msg.author.id === message.author.id) {
return msg.reply('You cannot star your own messages, baka.');
}
if (!reaction && msg.author.id === message.author.id) return msg.reply('You cannot star your own messages, baka.');
this.starred.push(id);
if (!channel.permissionsFor(this.client.user).has('EMBED_LINKS')) {
return msg.say(stripIndents`