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
+6 -3
View File
@@ -1,4 +1,5 @@
const { Command } = require('discord.js-commando');
const { stripIndents } = require('common-tags');
module.exports = class CowsayCommand extends Command {
constructor(client) {
@@ -24,13 +25,15 @@ module.exports = class CowsayCommand extends Command {
run(msg, args) {
const { text } = args;
return msg.code(null,
`< ${text} >
return msg.code(null,
stripIndents`
< ${text} >
\\ ^__^
\\ (oO)\\_______
(__)\\ )\\/\\
U ||----w |
|| ||`
|| ||
`
);
}
};