diff --git a/bot.py b/bot.py index 659d756..15fc824 100644 --- a/bot.py +++ b/bot.py @@ -54,7 +54,7 @@ Music_Config = TypedDict( # *=========================================== Predefines formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") MASTER_TIMEOUT = datetime.now() -INITIAL_TIME_WAIT = 5 +INITIAL_TIME_WAIT = 500 MUZYKA: Music_Config = {"ctx": None, "queue": [], "requester": []} LOGFILE = "" @@ -74,7 +74,7 @@ GET_MP3 = "/mp3" SEND_MP3 = "/update_mp3" LIBRARIAN_SERVICE_ADDRESS = "http://192.168.1.191:5001" SEND_QUERY = "/query" -TIME_BETWEEN_CALLS = 7200 +TIME_BETWEEN_CALLS = 10000 LAST_SPONTANEOUS_CALL = datetime.now() # *=========================================== Platform Specific Predefines @@ -680,7 +680,7 @@ async def check_data(): if tdelta > TIME_BETWEEN_CALLS: logger.info("Spontaneous call") TIME_BETWEEN_CALLS = random.randint( - 7200, 172800 + 10200, 272800 ) # temp random, set after each call logger.debug(TIME_BETWEEN_CALLS) LAST_SPONTANEOUS_CALL = datetime.now()