|
|
@@ -81,7 +81,7 @@ def chat_hook():
|
|
|
display_name = data['eventData']['user']['displayName']
|
|
|
if add_user_to_points(db, user_id, display_name, authed):
|
|
|
current_app.logger.debug(f'Added/updated {user_id} database.')
|
|
|
- current_app.logger.info(f'{display_name}/{user_id}: {data["eventData"]["rawBody"]}') # Log all chat messages
|
|
|
+ current_app.logger.debug(f'{display_name}/{user_id}: {data["eventData"]}') # Log all chat messages
|
|
|
|
|
|
if data['type'] == 'USER_JOINED': # Do username house cleaning when a viewer joins
|
|
|
if data['eventData']['user']['authenticated']:
|
|
|
@@ -95,8 +95,7 @@ def chat_hook():
|
|
|
elif data['type'] == 'CHAT': # If a chat message, sort out what command it is
|
|
|
user_id = data['eventData']['user']['id']
|
|
|
display_name = data['eventData']['user']['displayName']
|
|
|
- current_app.logger.debug(f'Chat message from {display_name}:')
|
|
|
- current_app.logger.debug(f'{data["eventData"]["rawBody"]}')
|
|
|
+ current_app.logger.info(f'{display_name}/{user_id}: {data["eventData"]["rawBody"]}') # Log all chat messages
|
|
|
|
|
|
lowercase_msg = data['eventData']['rawBody'].lower() # Convert body to lower case to match reward case
|
|
|
if lowercase_msg.startswith(f'{prefix}help'): # Send the help message
|