Skip to content

More flexibility in string handling #3

@Fell

Description

@Fell

I tried this bot with my group and we immediately ran into some small problems that can be easily fixed:

Don't be case sensitive
User names are currently handled case-sensitive, which leads to users having multiple different scores.

Allow spaces
A lot of Telegram clients are adding a space after auto-completing a user name which results in messages like /karma @User ++ which then aren't handled because of the space between the username and the ++

Fix double minus
Also, some clients are auto-completing a double minus -- to a long dash . Users are wondering why is doesn't work because they don't see the difference which is litterally one pixel. So I think a long dash should just work as well.

Allow user names without @
One of our members doesn't have a telegram.me username, so he just gets auto-completed to his first name. I think names without @ should work as well, since they aren't being checked anyway.

That's just my opinion. Let me know if you are going to implement some of it ;) # @

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions