|
@@ -31,8 +31,9 @@ def chat_hook():
|
|
|
current_app.logger.debug(f'{display_name}/{user_id}: {data["eventData"]}') # Log all chat messages
|
|
current_app.logger.debug(f'{display_name}/{user_id}: {data["eventData"]}') # Log all chat messages
|
|
|
|
|
|
|
|
if data['type'] == 'STREAM_STARTED':
|
|
if data['type'] == 'STREAM_STARTED':
|
|
|
|
|
+ current_app.logger.info('Starting a new stream.')
|
|
|
if clear_fulfilled_rewards():
|
|
if clear_fulfilled_rewards():
|
|
|
- current_app.logger.info('Cleared fulfilled rewards, since we\'re starting a new stream.')
|
|
|
|
|
|
|
+ current_app.logger.info('Cleared fulfilled rewards.')
|
|
|
|
|
|
|
|
if data['type'] == 'USER_JOINED': # Do username house cleaning when a viewer joins
|
|
if data['type'] == 'USER_JOINED': # Do username house cleaning when a viewer joins
|
|
|
if data['eventData']['user']['authenticated']:
|
|
if data['eventData']['user']['authenticated']:
|