|
@@ -138,9 +138,9 @@ def help_message(user_id):
|
|
message = f'{message}<br><br>\
|
|
message = f'{message}<br><br>\
|
|
Kofi is enabled! <br>\
|
|
Kofi is enabled! <br>\
|
|
Authenticate with Owncast, and enter your email address into the Stream Rewards Info page to get Kofi perks.'
|
|
Authenticate with Owncast, and enter your email address into the Stream Rewards Info page to get Kofi perks.'
|
|
- if kofi_settings['tips']:
|
|
|
|
- message = f'{message}<br>\
|
|
|
|
- You\'ll recieve {kofi_settings["tip_points"]} points for every dollar you tip on Kofi.'
|
|
|
|
|
|
+ if kofi_settings['tips']:
|
|
|
|
+ message = f'{message}<br>\
|
|
|
|
+ You\'ll recieve {kofi_settings["tip_points"]} points for every dollar you tip on Kofi.'
|
|
send_private_chat(user_id, message)
|
|
send_private_chat(user_id, message)
|
|
|
|
|
|
|
|
|
|
@@ -153,6 +153,7 @@ ANNOUNCE_INTERVAL = {announce_dict['ANNOUNCE_INTERVAL']} # How long, in minutes
|
|
try:
|
|
try:
|
|
with open(announce_file, 'w') as f:
|
|
with open(announce_file, 'w') as f:
|
|
f.write(new_announce)
|
|
f.write(new_announce)
|
|
|
|
+ f.close()
|
|
except Exception as saerror:
|
|
except Exception as saerror:
|
|
current_app.logger.error(f'Couldn\'t save announce.py: {saerror.args[0]}')
|
|
current_app.logger.error(f'Couldn\'t save announce.py: {saerror.args[0]}')
|
|
return False
|
|
return False
|