From 20a2c7bf1b9e1190c797c23587785600fe08fb51 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Thu, 2 May 2024 13:25:21 -0500 Subject: [PATCH] Change `timers.py` to `threads.py` for clarity --- bot.py | 6 +++--- config.py | 2 +- core.py | 2 +- timers.py => threads.py | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename timers.py => threads.py (100%) diff --git a/bot.py b/bot.py index 62bb7c8..f65767c 100644 --- a/bot.py +++ b/bot.py @@ -8,7 +8,7 @@ import commands as cmds import config as conf from time import sleep from importlib import reload -import timers +import threads import random as r import handlers import bare @@ -269,10 +269,10 @@ class bot(bare.bot): if self.threads: tdict = {} for thread in self.threads: - tdict[thread] = timers.data[thread] + tdict[thread] = threads.data[thread] if tdict[thread]["passInstance"]: tdict[thread]["args"] = [self] - tMgr = Thread(target=timers.threadManager, args=(tdict,)) + tMgr = Thread(target=threads.threadManager, args=(tdict,)) tMgr.daemon = True tMgr.start() while 1: diff --git a/config.py b/config.py index 2613740..2bf334a 100644 --- a/config.py +++ b/config.py @@ -6,7 +6,7 @@ from typing import Optional, Any import bare, pylast load_dotenv() -__version__ = "v3.0.9" +__version__ = "v3.0.10" npbase: str = ( "\[\x0303last\.fm\x03\] [A-Za-z0-9_[\]{}\\|\-^]{1,$MAX} (is listening|last listened) to: \x02.+ - .*\x02( \([0-9]+ plays\)( \[.*\])?)?" # pyright: ignore [reportInvalidStringEscapeSequence] ) diff --git a/core.py b/core.py index bb83cb8..0945bda 100644 --- a/core.py +++ b/core.py @@ -3,7 +3,7 @@ from os import system from time import sleep from threading import Thread from logs import log -from timers import threadManager +from threads import threadManager def launch(server: str) -> None: diff --git a/timers.py b/threads.py similarity index 100% rename from timers.py rename to threads.py