stripIndents

This commit is contained in:
Daniel Odendahl Jr
2017-05-03 01:19:44 +00:00
parent 74fa836044
commit 2ee1f3e594
15 changed files with 100 additions and 79 deletions
+5 -4
View File
@@ -1,4 +1,5 @@
const { Command } = require('discord.js-commando');
const { stripIndents } = require('common-tags');
const request = require('superagent');
module.exports = class StrawpollCommand extends Command {
@@ -47,10 +48,10 @@ module.exports = class StrawpollCommand extends Command {
title,
options
});
return msg.say(
`${body.title}
http://strawpoll.me/${body.id}`
);
return msg.say(stripIndents`
${body.title}
http://strawpoll.me/${body.id}
`);
} catch (err) {
return msg.say('An Unknown Error Occurred.');
}