From 8b4885af76f9c5c5a112741b077e89e6c2f29735 Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Tue, 24 Oct 2023 11:50:42 +0300 Subject: [PATCH] Fixed command parsing; fixed help command; updated start.sh for the port i use --- commands.ini | 2 +- core/owncast.py | 2 +- start.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands.ini b/commands.ini index c07fbb7..83fe6f5 100644 --- a/commands.ini +++ b/commands.ini @@ -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! diff --git a/core/owncast.py b/core/owncast.py index 2e997f0..d7740f3 100644 --- a/core/owncast.py +++ b/core/owncast.py @@ -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)) diff --git a/start.sh b/start.sh index 2c38493..ea483f3 100755 --- a/start.sh +++ b/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