From 8357f25476a4919b9e5a8dc0e8ee3462157e3f33 Mon Sep 17 00:00:00 2001 From: dragonfire535 Date: Tue, 7 Mar 2017 23:28:14 -0500 Subject: [PATCH] Allow - in meme --- commands/imageedit/meme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/imageedit/meme.js b/commands/imageedit/meme.js index 8d939888..6af3308d 100644 --- a/commands/imageedit/meme.js +++ b/commands/imageedit/meme.js @@ -23,7 +23,7 @@ class MemeCommand extends commando.Command { if(type === "list") { message.channel.sendMessage("**Type Codes:** tenguy, afraid, older, aag, tried, biw, blb, kermit, bd, ch, cbg, wonka, cb, keanu, dsm, live, ants, doge, alwaysonbeat, ermg, facepalm, fwp, fa, fbf, fry, hipster, icanhas, crazypills, mw, noidea, regret, boat, hagrid, sohappy, captain, inigo, iw, ackbar, happening, joker, ive, ll, morpheus, mb, badchoice, mmm, jetpack, red, mordor, oprah, oag, remembers, philosoraptor, jw, patrick, rollsafe, sad-obama, sad-clinton, sadfrog, sad-bush, sad-biden, sad-boehner, saltbae, sarcasticbear, dwight, sb, ss, sf, dodgson, money, sohot, nice, awesome-awkward, awesome, awkward-awesome, awkward, fetch, success, scc, ski, officespace, interesting, toohigh, bs, center, both, winter, xy, buzz, yodawg, uno, yallgot, bad, elf, chosen"); } else if(message.content.includes("|")) { - if(message.content.split(" ").slice(1).join(" ").match(/^[a-zA-Z0-9|.,!?'\s]+$/)) { + if(message.content.split(" ").slice(1).join(" ").match(/^[a-zA-Z0-9|.,!?'-\s]+$/)) { let bottomrow = message.content.toLowerCase().split("|").slice(1).join("-"); let toprow = " " + message.content.toLowerCase().replace(bottomrow, "").split(" ").slice(2).join("-"); toprow = toprow.replace("|", "");