forked from Firepup650/FireBot
Change timers.py
to threads.py
for clarity
This commit is contained in:
parent
9684152def
commit
20a2c7bf1b
4 changed files with 5 additions and 5 deletions
6
bot.py
6
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:
|
||||
|
|
|
@ -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]
|
||||
)
|
||||
|
|
2
core.py
2
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:
|
||||
|
|
Loading…
Reference in a new issue