Horse Race Command

This commit is contained in:
Dragon Fire
2020-04-21 18:49:41 -04:00
parent 3145267427
commit 4bedbcda74
14 changed files with 309 additions and 10 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ module.exports = class AppleEngravingCommand extends Command {
s: 2,
f: 'font1'
});
return msg.channel.send({ files: [{ attachment: body, name: 'apple-engraving.jpg' }] });
return msg.say({ files: [{ attachment: body, name: 'apple-engraving.jpg' }] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
+1 -1
View File
@@ -41,7 +41,7 @@ module.exports = class NewspaperCommand extends Command {
.attach('headline', headline)
.attach('text', body);
const newspaperURL = text.match(/<img src="(https:\/\/r[0-9]+\.fodey\.com\/[0-9]+\/.+\.jpg)"/i)[1];
return msg.channel.send({ files: [newspaperURL] });
return msg.say({ files: [newspaperURL] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}