Fix Humble Bundle URLs

This commit is contained in:
Daniel Odendahl Jr
2018-08-20 01:32:27 +00:00
parent 72a521a2d2
commit 19e15313e1
+2 -2
View File
@@ -21,13 +21,13 @@ module.exports = class HumbleBundleCommand extends Command {
if (body.length > 1) {
return msg.say(stripIndents`
There are **${body.length}** bundles on right now!
${body.map(bundle => `**${bundle.bundle_name}**: <${bundle.bundle_url}>`).join('\n')}
${body.map(bundle => `**${bundle.bundle_name}**: <${bundle.url}>`).join('\n')}
`);
}
const data = body[0];
return msg.say(stripIndents`
The current bundle is **${data.bundle_name}**!
${data.bundle_url}
${data.url}
`);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);