Change timers.py to threads.py for clarity

This commit is contained in:
Firepup Sixfifty 2024-05-02 13:25:21 -05:00
parent 9684152def
commit 20a2c7bf1b
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA
4 changed files with 5 additions and 5 deletions

6
bot.py
View file

@ -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:

View file

@ -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]
)

View file

@ -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: