Fixed command parsing; fixed help command; updated start.sh for the port i use

This commit is contained in:
Siina Mashek 2023-10-24 11:50:42 +03:00
parent 10d0098a0f
commit 8b4885af76
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
[commands]
!help = Commands {command}
!help = Commands {commands}
!backseat = **No backseating** unless {botowner} specifically asks for help
!hydrate = [HYDRATE] {sender} wants {botowner} to take a drink!
!stretch = [STRETCH] {sender} reminds {botowner} to stretch!

View File

@ -107,7 +107,7 @@ def process_placeholders(sender, param, text):
def process_chat(data):
sender = data["user"]["displayName"]
text = data["body"]
text = data["body"][3:-4]
command_reply = get_command(text)
logging.info("<{}> {}".format(sender, text))

View File

@ -1,2 +1,2 @@
#!/bin/sh
FLASK_APP=bot.py pipenv run python3 -m flask run
FLASK_APP=bot.py pipenv run python3 -m flask run --port 6969