Small changes, reply to some things

This commit is contained in:
Daniel Odendahl Jr
2017-10-24 19:02:27 +00:00
parent e0594c8749
commit c225ea4659
141 changed files with 251 additions and 254 deletions
+2 -2
View File
@@ -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!`);
}
}
};