make help send all redeems
(the help function needs a rewrite)
This commit is contained in:
parent
f9ff27c055
commit
bf49aa16cd
|
@ -1,4 +1,4 @@
|
|||
from flask import Flask, request, json, Blueprint
|
||||
from flask import Flask, request, json, Blueprint, current_app
|
||||
from sqlite3 import Error
|
||||
from tlapbot.db import get_db
|
||||
from tlapbot.owncast_helpers import (add_user_to_database, change_display_name,
|
||||
|
@ -28,9 +28,12 @@ def owncast_webhook():
|
|||
print(f'{data["eventData"]["body"]}')
|
||||
if "!help" in data["eventData"]["body"]:
|
||||
message = """Tlapbot commands:
|
||||
!help to see this help message.
|
||||
!points to see your points.
|
||||
!drink to redeem a pitíčko for 60 points.
|
||||
That's it for now."""
|
||||
!name_update to force name update if tlapbot didn't catch it.
|
||||
Tlapbot redeems:\n"""
|
||||
for redeem, redeem_info in current_app.config['REDEEMS'].items():
|
||||
message += (f"!{redeem} for {redeem_info['price']} points.\n")
|
||||
# TODO: also make this customizable
|
||||
send_chat(message)
|
||||
elif "!points" in data["eventData"]["body"]:
|
||||
|
|
Loading…
Reference in New Issue