Simple fix for multiple spaces on PonyAPI
This commit is contained in:
parent
8e85ed5d0f
commit
012fb4f74b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue