mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 03:14:35 +02:00
Small changes, reply to some things
This commit is contained in:
@@ -47,7 +47,7 @@ module.exports = class GitHubCommand extends Command {
|
||||
.addField('❯ Issues',
|
||||
body.open_issues, true)
|
||||
.addField('❯ Language',
|
||||
body.language || 'N/A', true)
|
||||
body.language || '???', true)
|
||||
.addField('❯ Created',
|
||||
new Date(body.created_at).toDateString(), true)
|
||||
.addField('❯ Modified',
|
||||
@@ -55,7 +55,7 @@ module.exports = class GitHubCommand extends Command {
|
||||
return msg.embed(embed);
|
||||
} catch (err) {
|
||||
if (err.status === 404) return msg.say('Could not find any results.');
|
||||
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user