diff --git a/src/commands/ponyapi.js b/src/commands/ponyapi.js index c6be465..a002714 100644 --- a/src/commands/ponyapi.js +++ b/src/commands/ponyapi.js @@ -96,7 +96,7 @@ module.exports = (bot) => { bot.command("mlpep", spamwatchMiddleware, async (ctx) => { const Strings = getStrings(ctx.from.language_code); - const userInput = ctx.message.text.split(' ').slice(1).join(' '); + const userInput = ctx.message.text.split(' ').slice(1).join(' ').replace(" ", "+"); if (!userInput) { ctx.reply(Strings.ponyApi.noEpisodeNum, { @@ -165,7 +165,7 @@ module.exports = (bot) => { bot.command("mlpcomic", spamwatchMiddleware, async (ctx) => { const Strings = getStrings(ctx.from.language_code); - const userInput = ctx.message.text.split(' ').slice(1).join(' '); + const userInput = ctx.message.text.split(' ').slice(1).join(' ').replace(" ", "+"); if (!userInput) { ctx.reply(Strings.ponyApi.noComicName, {