mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 04:39:57 +00:00
Simple fix for multiple spaces on PonyAPI
This commit is contained in:
parent
8e85ed5d0f
commit
012fb4f74b
@ -20,7 +20,7 @@ module.exports = (bot) => {
|
|||||||
|
|
||||||
bot.command("mlpchar", spamwatchMiddleware, async (ctx) => {
|
bot.command("mlpchar", 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.noCharName, {
|
ctx.reply(Strings.ponyApi.noCharName, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user