try:
if match.prefix():
result_lines = await do_shop(match)
+
+ message_lines = []
for line in result_lines:
- await bot.api.send_text_message(
- room.room_id, str(line))
+ message_lines.append(str(line))
+
+ message = '\n'.join(message_lines)
+
+ await bot.api.send_text_message(
+ room.room_id, message)
+
except Exception as ex:
for line in ['You have:', ' no tea', str(ex)]:
await bot.api.send_text_message(