diff --git a/bot.py b/bot.py index 273915f..23986e3 100644 --- a/bot.py +++ b/bot.py @@ -587,6 +587,7 @@ async def check_data(): """ # trunk-ignore(codespell/misspelled) # TODO: dlaczego sie tu wypierdala + logger.info("Heartbeat of cleanup proc") if os.path.getsize(LOGFILE) > 6000000: channel = client.get_channel(1062047571557744721) await channel.send( @@ -675,7 +676,7 @@ async def get_random_cyclic_message(): else: channel_id = 1062047367337095268 channel = client.get_channel(channel_id) - logger.info("Wtracenie sie w dyskusje") + logger.info("Wtracenie w dyskusje") messages = [message async for message in channel.history(limit=50)] for message in messages: temp = {"role": "user", "content": message.author + ":" + message.content} diff --git a/file_webservice/conjurer_musician.py b/file_webservice/conjurer_musician.py index f149cd2..7f96270 100644 --- a/file_webservice/conjurer_musician.py +++ b/file_webservice/conjurer_musician.py @@ -33,7 +33,8 @@ if platform in ("linux", "linux2"): music_file_list = [] -def rescan(): +def rescan(logger): + logger.info("Rescan triggered") for mp3_item in Path.glob(Path(MUSIC_FOLDER), "**/*.mp3"): temp_music_file = mp3_item.as_posix() if platform == "win32": @@ -68,7 +69,7 @@ def update_music_list(): if __name__ == "__main__": rescan() - thread = threading.Thread(target=thread_rescan, args=("Updater",app.logger)) + thread = threading.Thread(target=thread_rescan, args=["Updater",app.logger]) thread.start() app.run(debug=True, host="0.0.0.0") #from waitress import serve