Skip to content

Commit

Permalink
Update Normal.py new update material
Browse files Browse the repository at this point in the history
  • Loading branch information
JUSTadICE-CHaN authored Sep 29, 2024
1 parent e60a87f commit 282d4c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def process_channel(self, main_channel, channel_status):

except asyncio.TimeoutError:
print(f'No response received in {main_channel_obj.name} within 3 seconds')
self.handle_timeout(main_channel_obj, message, main_channel, channel_status)
await self.handle_timeout(main_channel_obj, message, main_channel, channel_status)

async def print_current_timers(self, main_channel_obj, main_channel, message):
try:
Expand All @@ -66,13 +66,13 @@ async def print_current_timers(self, main_channel_obj, main_channel, message):
except:
await self.find_previous_message(main_channel_obj, main_channel, message)

def handle_timeout(self, main_channel_obj, message, main_channel, channel_status):
self.find_previous_message(main_channel_obj, main_channel)
async def handle_timeout(self, main_channel_obj, message, main_channel, channel_status):
await self.find_previous_message(main_channel_obj, main_channel, message)
try:
timers = self.rolling[main_channel].get_timers()
print(f"Current timers for {main_channel_obj.name}: {timers}")
print(f"Just to confirm, Current timers for {main_channel_obj.name} are: {timers}")
except:
self.find_previous_message(main_channel_obj, main_channel, message)
await self.find_previous_message(main_channel_obj, main_channel, message)
channel_status[main_channel] = True

async def find_previous_message(self, main_channel_obj, main_channel, message):
Expand Down

0 comments on commit 282d4c2

Please sign in to comment.