From e06ab77721bed60b6a8a20cf5715ce353e66ec28 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 12 Jun 2024 00:57:19 -0700 Subject: [PATCH] Update pong-bot.py --- pong-bot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pong-bot.py b/pong-bot.py index 4ab916c..e3d55d6 100644 --- a/pong-bot.py +++ b/pong-bot.py @@ -22,13 +22,13 @@ def auto_response(message): message_list=message.split("@") query_data=message_list[1] # print(f"System: parsed command {query_data}") - message_to_send="Pong, and copy " + query_data + bot_response="Pong, and copy " + query_data except Exception: - message_to_send="Pong" - return message_to_send + bot_response="Pong" + return bot_response def onReceive(packet, interface): - channel_number = 0 + channel_number = 0 # Default channel, for override DEBUG message_from_id = 0 try: if 'decoded' in packet and packet['decoded']['portnum'] == 'TEXT_MESSAGE_APP': @@ -37,7 +37,7 @@ def onReceive(packet, interface): if packet.get('channel'): channel_number = packet['channel'] else: - channel_number = 0 + channel_number = 0 # Default channel, for override DEBUG message_from_id = packet['from']