Fixed command parsing; fixed help command; updated start.sh for the port i use
This commit is contained in:
parent
10d0098a0f
commit
8b4885af76
3 changed files with 3 additions and 3 deletions
|
@ -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!
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
2
start.sh
2
start.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue