moan0s / matrix-registration-bot

A bot that is used to create and manage registration tokens for a matrix server
GNU Affero General Public License v3.0
64 stars 10 forks source link

Develop #12

Closed broguesquadron closed 2 years ago

broguesquadron commented 2 years ago

Added conditional logic to allow case insensitivity in the first character of commands. This makes the bot more mobile-friendly.

moan0s commented 2 years ago

Thank you for the nice PR! I was wondering if the goal would be to make the bot case insensitive only for the first character or whether we should disregard case case completely? We could use

if match.command("create", case_sensitive=False):
  ...

for that.

broguesquadron commented 2 years ago

case

I didn't think it through and look at the botlib library. I'll rescind the PR and get back to you this evening.