mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 00:04:48 +02:00
More Stoof
This commit is contained in:
@@ -23,7 +23,10 @@ module.exports = class RobohashCommand extends Command {
|
||||
async run(msg, { text }) {
|
||||
try {
|
||||
const { body } = await snekfetch.get(`https://robohash.org/${text}`);
|
||||
return msg.say({ files: [{ attachment: body, name: 'robohash.png' }] });
|
||||
return msg.say({ files: [{
|
||||
attachment: body,
|
||||
name: 'robohash.png'
|
||||
}] });
|
||||
} catch (err) {
|
||||
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user