Skip to content

Commit

Permalink
add <br>s to help message construction
Browse files Browse the repository at this point in the history
  • Loading branch information
SleepyLili committed Feb 4, 2024
1 parent 7ffb1a1 commit 6641121
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tlapbot/help_message.py
Expand Up @@ -4,20 +4,20 @@

def send_help():
message = []
message.append("Tlapbot gives you points for being in chat, and then allows you to spend those points.\n")
message.append(f"People connected to chat receive {current_app.config['POINTS_AMOUNT_GIVEN']} points every {current_app.config['POINTS_CYCLE_TIME']} seconds.\n")
message.append("You can see your points and recent redeems in the Tlapbot dashboard. Look for a button to click under the stream window.\n")
message.append("""Tlapbot commands:
!help to see this help message.
!points to see your points.\n"""
message.append("Tlapbot gives you points for being in chat, and then allows you to spend those points. <br> \n")
message.append(f"People connected to chat receive {current_app.config['POINTS_AMOUNT_GIVEN']} points every {current_app.config['POINTS_CYCLE_TIME']} seconds. <br> \n")
message.append("You can see your points and recent redeems in the Tlapbot dashboard. Look for a button to click under the stream window. <br> \n")
message.append("""Tlapbot commands: <br>
!help to see this help message. <br>
!points to see your points. <br> \n"""
)
if current_app.config['LIST_REDEEMS']:
message.append("Active redeems:\n")
message.append("Active redeems: <br> \n")
for redeem, redeem_info in current_app.config['REDEEMS'].items():
if 'info' in redeem_info:
message.append(f"!{redeem} for {redeem_info['price']} points. {redeem_info['info']}\n")
message.append(f"!{redeem} for {redeem_info['price']} points. {redeem_info['info']} <br> \n")
else:
message.append(f"!{redeem} for {redeem_info['price']} points.\n")
message.append(f"!{redeem} for {redeem_info['price']} points. <br> \n")
else:
message.append("Check the dashboard for a list of currently active redeems.")
send_chat(''.join(message))

0 comments on commit 6641121

Please sign in to comment.