diff --git a/bot.py b/bot.py index 710e0b2..7c73573 100644 --- a/bot.py +++ b/bot.py @@ -75,7 +75,7 @@ SEND_MP3 = "/update_mp3" GET_PLAYLIST = "/get_music" LIBRARIAN_SERVICE_ADDRESS = "http://192.168.1.191:5001" SEND_QUERY = "/query" -TIME_BETWEEN_CALLS = 10000 +TIME_BETWEEN_CALLS = 100000 LAST_SPONTANEOUS_CALL = datetime.now() # *=========================================== Platform Specific Predefines @@ -671,7 +671,7 @@ async def check_data(): file_data = json.load(file_music_memory) new_data = [] new_data.append(file_data[0]) - new_data.extend(file_data[-20]) + new_data.extend(file_data[:-20]) file_music_memory.truncate(0) file_music_memory.seek(0) # convert back to json.