|
|
@@ -137,33 +137,30 @@ def do_reward(message, user_id): # Parse the chat command
|
|
|
send_private_chat(user_id, f'\"{prefix}{reward}\", {username}? No such reward.')
|
|
|
|
|
|
|
|
|
-def help_message(user_id):
|
|
|
+def help_message(user_id): # Build help message
|
|
|
prefix = current_app.config['PREFIX']
|
|
|
kofi_settings = current_app.config['KOFI_SETTINGS']
|
|
|
- kofi_integration = current_app.config['KOFI_INTEGRATION']
|
|
|
+ kofi_integration = current_app.config['KOFI_SETTINGS']['integration']
|
|
|
+ gb_settings = current_app.config['GB_SETTINGS']
|
|
|
+ gb_integration = current_app.config['GB_SETTINGS']['integration']
|
|
|
message = f'You get {current_app.config["POINTS_AWARD"]} points for every {current_app.config["POINTS_INTERVAL"]} minutes you\'re in chat.<br> \
|
|
|
You can see your points, the rewards queue, and other helpful information by clicking on the \"Points Rewards\" button.<br><br> \
|
|
|
<b><u>Chat commands:</u></b><br> \
|
|
|
<b>{prefix}help</b> to see this help message.<br> \
|
|
|
<b>{prefix}points</b> to see your points.<br> \
|
|
|
<b>{prefix}rewards</b> to see a list of currently active rewards.'
|
|
|
- if kofi_integration:
|
|
|
+ if kofi_integration or gb_integration:
|
|
|
message = f'{message}<br><br>\
|
|
|
- <b><u>Kofi is enabled!</b></u><br>\
|
|
|
- Authenticate with Owncast, and enter your email address into the Stream Rewards Info page to get Kofi perks.'
|
|
|
+ <b><u>Donations are enabled!</b></u><br>\
|
|
|
+ Authenticate with Owncast, and register your email address on the OwnchatBot Info page to get donation perks.'
|
|
|
if kofi_settings['donations']:
|
|
|
- if kofi_settings["donation_points"] == 1:
|
|
|
- d_points_label = 'point'
|
|
|
- else:
|
|
|
- d_points_label = 'points'
|
|
|
- if kofi_settings["sub_points"] == 1:
|
|
|
- s_points_label = 'point'
|
|
|
- else:
|
|
|
- s_points_label = 'points'
|
|
|
message = f'{message}<br>\
|
|
|
- You\'ll recieve {kofi_settings["donation_points"]} {d_points_label} for every dollar you donate on Kofi'
|
|
|
+ You\'ll recieve {porps(kofi_settings["donation_points"])} for every dollar you donate on Kofi'
|
|
|
if kofi_settings['subs']:
|
|
|
- message = f'{message}, and {kofi_settings["sub_points"]} {s_points_label} every month for subscribing to my Kofi page.'
|
|
|
+ message = f'{message}, and {porps(kofi_settings["sub_points"])} every month for subscribing to my Kofi page.'
|
|
|
+ if gb_settings['donations']:
|
|
|
+ message = f'{message}<br>\
|
|
|
+ You\'ll recieve {porps(gb_settings["donation_points"])} for every dollar you donate on GiveButter'
|
|
|
else:
|
|
|
message = f'{message}.'
|
|
|
send_private_chat(user_id, message)
|