Cog-Creators / Red-DiscordBot

A multi-function Discord bot
https://docs.discord.red
GNU General Public License v3.0
4.84k stars 2.31k forks source link

[Core set api] Bot ignore the api if token contain ";" #5222

Open Rysanlos opened 3 years ago

Rysanlos commented 3 years ago

What Red version are you using?

3.4.12

Cog name

Core

Command name

set api travitia api_key tok;en

What did you expect to happen?

I expect the bot to successfully add the api token.

What actually happened?

The bot just ignores it, and paste help. image

How can we reproduce this error?

For the example, my token is an unfortunate API token, it contain a comma ";" inside. For obvious security reason I will not paste it here so I will call it tok;en to represent the unusual token.

I tried all the commands above, no luck, still the same results.

Anything else?

No response

Kowlin commented 3 years ago

What service exactly is generating API keys with ; in them?

madebylydia commented 3 years ago

Travitia. They do not own any real website I'm aware of, they just got an API. I can contact the API's owner for more information about the authentication they use if you want.

madebylydia commented 3 years ago

I've been informed that the API just use a random string to authenticate the user, and does not respect any authentication schema.