Simple fix for multiple spaces on PonyAPI

This commit is contained in:
Lucas Gabriel 2025-01-23 21:12:52 -03:00
parent 8e85ed5d0f
commit 012fb4f74b
No known key found for this signature in database
GPG Key ID: D9B075FC6DC93985

View File

@ -20,7 +20,7 @@ module.exports = (bot) => {
bot.command("mlpchar", 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.noCharName, {