Compare commits

...

3 commits

Author SHA1 Message Date
b50a6aef00
try to fix 2024-05-01 00:54:52 +00:00
9f88283855
attempt to merge ig? 2024-05-01 00:53:54 +00:00
617be6f79f
Add a timer to change the topic in #firemc every minute 2024-04-30 19:43:54 -05:00
2 changed files with 6 additions and 1 deletions

View file

@ -6,7 +6,7 @@ from typing import Optional, Any
import bare, pylast
load_dotenv()
__version__ = "v3.0.7-dev"
__version__ = "v3.0.7"
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

@ -172,6 +172,10 @@ def PART(bot: bare.bot, msg: str) -> tuple[None, None]:
bot.channels.pop(channel, None)
return None, None
def QUIT(bot: bare.bot, msg: str) -> tuple[None, None]:
if bot.server == "replirc":
if msg.split("!", 1)[0][1:] == "FireMCBot":
bot.send("TOPIC #firemc :FireMC Relay channel (offline)\n")
def NULL(bot: bare.bot, msg: str) -> tuple[None, None]:
return None, None
@ -186,4 +190,5 @@ handles: dict[
"PART": PART,
"MODE": NULL,
"TOPIC": NULL,
"QUIT": QUIT
}