Cog-Creators / Cog-Creators/Red-DiscordBot

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

Open
#5,222 4 comments 0 reactions 0 assignees View on GitHub
Category: Core - Bot Commands Status: In Progress Type: Bug
Dominant language
Python
Stars
5.7k
Forks
2.5k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

### 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](https://user-images.githubusercontent.com/22010386/130356069-38920325-551b-4604-b734-41d81eaa784e.png)

### 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.

- [p]set api travitia api_key tok;en
- [p]set api travitia api_key,tok;en
- [p]set api travitia api_key;tok;en
- [p]set api travitia api_key "tok;en"

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

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.