forked from Firepup650/FireBot
Formatting
This commit is contained in:
parent
23dfa854ac
commit
9684152def
2 changed files with 4 additions and 1 deletions
|
@ -172,6 +172,7 @@ def PART(bot: bare.bot, msg: str) -> tuple[None, None]:
|
||||||
bot.channels.pop(channel, None)
|
bot.channels.pop(channel, None)
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
|
|
||||||
def QUIT(bot: bare.bot, msg: str) -> tuple[None, None]:
|
def QUIT(bot: bare.bot, msg: str) -> tuple[None, None]:
|
||||||
if bot.server == "replirc":
|
if bot.server == "replirc":
|
||||||
quitter = msg.split("!", 1)[0][1:]
|
quitter = msg.split("!", 1)[0][1:]
|
||||||
|
@ -179,6 +180,7 @@ def QUIT(bot: bare.bot, msg: str) -> tuple[None, None]:
|
||||||
bot.send("TOPIC #firemc :FireMC Relay channel (offline)\n")
|
bot.send("TOPIC #firemc :FireMC Relay channel (offline)\n")
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
|
|
||||||
def NULL(bot: bare.bot, msg: str) -> tuple[None, None]:
|
def NULL(bot: bare.bot, msg: str) -> tuple[None, None]:
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
|
@ -192,5 +194,5 @@ handles: dict[
|
||||||
"PART": PART,
|
"PART": PART,
|
||||||
"MODE": NULL,
|
"MODE": NULL,
|
||||||
"TOPIC": NULL,
|
"TOPIC": NULL,
|
||||||
"QUIT": QUIT
|
"QUIT": QUIT,
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,6 +112,7 @@ def radio(instance: bare.bot) -> NoReturn:
|
||||||
instance.log("Thread while loop broken", "FATAL")
|
instance.log("Thread while loop broken", "FATAL")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
data: dict[str, dict[str, Any]] = {
|
data: dict[str, dict[str, Any]] = {
|
||||||
"radio": {"noWrap": True, "func": radio, "passInstance": True}
|
"radio": {"noWrap": True, "func": radio, "passInstance": True}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue