FoglyOgly / Meowth

A Discord helper bot for Pokemon Go communities.
GNU General Public License v3.0
119 stars 96 forks source link

Unable to link Silph Card for trainers with two names #236

Open TheSwindlerAdmin opened 6 years ago

TheSwindlerAdmin commented 6 years ago

Meowth bot stops reading the !set silph command if there is a space in the trainer's name.

I have a player with the trainer name "Mitsuki Moriko" When we try the command "!set silph Mitsuki Moriko" meowth bot states "Silph Card for Mitsuki not found." I've verified the trainer has their discord and Silph road accounts linked and that the name is correct.

We cannot figure out how to get MeowthBot to search for the full name including the space.

FoglyOgly commented 6 years ago

Try !set silph "Mitsuki Moriko"

The quotes should make Meowth see it as one argument

On Fri, Aug 31, 2018, 9:44 PM TheSwindlerAdmin notifications@github.com wrote:

Meowth bot stops reading the !set silph command if there is a space in the trainer's name.

I have a player with the trainer name "Mitsuki Moriko" When we try the command "!set silph Mitsuki Moriko" meowth bot states "Silph Card for Mitsuki not found." I've verified the trainer has their discord and Silph road accounts linked and that the name is correct.

We cannot figure out how to get MeowthBot to search for the full name including the space.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FoglyOgly/Meowth/issues/236, or mute the thread https://github.com/notifications/unsubscribe-auth/AdXRzeYucEM_L3QMC5KmRdMV_4pw38xIks5uWfSZgaJpZM4WWCnQ .

TheSwindlerAdmin commented 6 years ago

@FoglyOgly The weirdest thing happens.... Meowth bot will start typing and then will stop typing and not do anything when I enter the command with quotes.

!set silph "Mitsuki Moriko"

Now what's even weirder is if I have a friend do the same command (who already has a silph road card linked) Meowthbot correctly states. "This Travelers Card is linked to another Discord account!" But will not actually say anything for the person who's account is correctly set up.

The same thing happens where the bot will type but not say anything when I enter this command

!silphcard "Mitsuki Moriko"

The following command works perfectly: !silphcard "TheSwindler"

It seems that space is messing it up somehow.