Fixes for spacing on /mlpep and /mlpcomic
This commit is contained in:
parent
db1eba2346
commit
ac73a1fde8
1 changed files with 2 additions and 2 deletions
|
@ -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, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue