From ec041917a46af7d4ff10c871e8ab234d6c5dd8d8 Mon Sep 17 00:00:00 2001 From: bMorgan01 Date: Sun, 20 Nov 2022 11:17:29 -0700 Subject: [PATCH] safety --- mstbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mstbot.py b/mstbot.py index 04a851e..65fb5cf 100644 --- a/mstbot.py +++ b/mstbot.py @@ -153,7 +153,7 @@ class Admin(commands.Cog): # await safeSend(ctx, "The notification options are: \n1. joins") # else: # name = "" - # if kind.lower() == "joins": + # if kind.lower() == "joins": # name = "Status Joins" # # if name != "": @@ -557,7 +557,7 @@ async def status_task(sid: int): await currServ.create_voice_channel("Players: " + str(players) + "/" + str(max), overwrites=overwrites) - if getShowHours(sid, cursor) and not first_iter: + if getShowHours(sid, cursor) and not first_iter and lastSeconds is not None: tStr = "Player Hrs: " + str(round((lastSeconds + len(names) * (currTime - lastTime).total_seconds())/3600)) if len(tChannels) > 0: lastTName = tChannels[0].name