This commit is contained in:
Daniel Odendahl Jr
2017-05-08 21:41:54 +00:00
parent 3d91d5c8ab
commit b054a58bca
42 changed files with 79 additions and 83 deletions
+1 -1
View File
@@ -42,6 +42,6 @@ module.exports = class MemeCommand extends Command {
return msg.say('This Command requires the `Attach Files` Permission.');
const { type, top, bottom } = args;
return msg.channel.send({ files: [`https://memegen.link/${type}/${top}/${bottom}.jpg`] })
.catch(err => msg.say(`An Error Occurred: ${err}`));
.catch(err => msg.say(err));
}
};
+1 -1
View File
@@ -15,6 +15,6 @@ module.exports = class SpamCommand extends Command {
if (!msg.channel.permissionsFor(this.client.user).has('ATTACH_FILES'))
return msg.say('This Command requires the `Attach Files` Permission.');
return msg.channel.send({ files: ['https://i.imgur.com/2JFu5xE.jpg'] })
.catch(err => msg.say(`An Error Occurred: ${err}`));
.catch(err => msg.say(err));
}
};
+1 -1
View File
@@ -46,7 +46,7 @@ module.exports = class StrawpollCommand extends Command {
http://strawpoll.me/${body.id}
`);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+3 -3
View File
@@ -22,16 +22,16 @@ module.exports = class TodayCommand extends Command {
.buffer(true);
const parsed = JSON.parse(text);
const events = parsed.data.Events;
const random = Math.floor(Math.random() * events.length);
const event = events[Math.floor(Math.random() * events.length)];
const embed = new RichEmbed()
.setColor(0x9797FF)
.setURL(parsed.url)
.setTitle(`On this day (${parsed.date})...`)
.setTimestamp()
.setDescription(`${events[random].year}: ${events[random].text}`);
.setDescription(`${event.year}: ${event.text}`);
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};
+1 -1
View File
@@ -27,7 +27,7 @@ module.exports = class WouldYouRatherCommand extends Command {
.setDescription(`${body.choicea} OR ${body.choiceb}?`);
return msg.embed(embed);
} catch (err) {
return msg.say(`An Error Occurred: ${err}`);
return msg.say(err);
}
}
};