This commit is contained in:
Dragon Fire
2020-06-30 16:06:31 -04:00
parent e7d38f5c5e
commit 618877363d
+2 -2
View File
@@ -1,6 +1,6 @@
const Command = require('../../structures/Command');
const request = require('node-superfetch');
const { stripIndent } = require('common-tags');
const { html } = require('common-tags');
module.exports = class PoemCommand extends Command {
constructor(client) {
@@ -40,7 +40,7 @@ module.exports = class PoemCommand extends Command {
const { body } = await request.get(`https://poetrydb.org/author,title/${author};${title}`);
if (body.status === 404) return msg.say('Could not find any results.');
const data = body[0];
return msg.say(stripIndent`
return msg.say(html`
**${data.title}** by **${data.author}**
${data.lines.join('\n')}
`);