D
D
Dream2021-08-08 21:29:18
Python
Dream, 2021-08-08 21:29:18

Why does the bot count s/ and S/ as two different prefixes?

Why is the bot sensitive to letter prefix? s/ and S/ - recognizes as different prefixes. How can this be fixed?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2021-08-08
@dreameddd

Why does the bot count s/ and S/ as two different prefixes?

because these are two different prefixes.
S large and s small are two completely different characters for python, they have different unicode.
if you want the bot to respond to both prefixes, you must specify them.

U
UberPool, 2021-08-08
@UberPool

Because case is important. You can change the prefix to lower case.
Python method for this -str.lower()

D
Developer, 2021-08-08
@samodum

I'll tell you more: o and o are different symbols

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question