mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
Horse Race Command
This commit is contained in:
@@ -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!`);
|
||||
}
|
||||
|
||||
@@ -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!`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user