Fixes for spacing on /mlpep and /mlpcomic

This commit is contained in:
Lucas Gabriel 2025-02-08 01:06:43 -03:00
parent db1eba2346
commit ac73a1fde8
No known key found for this signature in database
GPG Key ID: D9B075FC6DC93985

View File

@ -96,7 +96,7 @@ module.exports = (bot) => {
bot.command("mlpep", spamwatchMiddleware, async (ctx) => { bot.command("mlpep", spamwatchMiddleware, async (ctx) => {
const Strings = getStrings(ctx.from.language_code); 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) { if (!userInput) {
ctx.reply(Strings.ponyApi.noEpisodeNum, { ctx.reply(Strings.ponyApi.noEpisodeNum, {
@ -165,7 +165,7 @@ module.exports = (bot) => {
bot.command("mlpcomic", spamwatchMiddleware, async (ctx) => { bot.command("mlpcomic", spamwatchMiddleware, async (ctx) => {
const Strings = getStrings(ctx.from.language_code); 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) { if (!userInput) {
ctx.reply(Strings.ponyApi.noComicName, { ctx.reply(Strings.ponyApi.noComicName, {