Formatting

This commit is contained in:
Firepup Sixfifty 2024-04-11 21:45:40 -05:00
parent a5e1c1c96b
commit 69976f5505
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA
3 changed files with 13 additions and 8 deletions

4
bot.py
View file

@ -36,9 +36,7 @@ class bot(bare.bot):
conf.servers[server]["admins"] if "admins" in conf.servers[server] else [] conf.servers[server]["admins"] if "admins" in conf.servers[server] else []
) )
self.ignores = ( self.ignores = (
conf.servers[server]["ignores"] conf.servers[server]["ignores"] if "ignores" in conf.servers[server] else []
if "ignores" in conf.servers[server]
else []
) )
self.__version__ = conf.__version__ self.__version__ = conf.__version__
self.npallowed = conf.npallowed self.npallowed = conf.npallowed

View file

@ -185,8 +185,7 @@ def fmpull(bot: bare.bot, chan: str, name: str, message: str) -> None:
) )
if song: if song:
bot.msg( bot.msg(
"Firepup is currently listening to: " "Firepup is currently listening to: " + song.__str__(),
+ song.__str__(),
chan, chan,
) )
else: else:
@ -205,7 +204,11 @@ data: dict[str, dict[str, Any]] = {
"bugs bugs bugs": {"prefix": False, "aliases": []}, "bugs bugs bugs": {"prefix": False, "aliases": []},
"hi $BOTNICK": {"prefix": False, "aliases": ["hello $BOTNICK"]}, "hi $BOTNICK": {"prefix": False, "aliases": ["hello $BOTNICK"]},
# [npbase, su] # [npbase, su]
"restart": {"prefix": True, "aliases": ["reboot", "stop", "hardreload", "hr"], "check": checks.admin}, "restart": {
"prefix": True,
"aliases": ["reboot", "stop", "hardreload", "hr"],
"check": checks.admin,
},
"uptime": {"prefix": True, "aliases": []}, "uptime": {"prefix": True, "aliases": []},
"raw ": {"prefix": True, "aliases": ["cmd "], "check": checks.admin}, "raw ": {"prefix": True, "aliases": ["cmd "], "check": checks.admin},
"debug": {"prefix": True, "aliases": ["dbg", "d"], "check": checks.admin}, "debug": {"prefix": True, "aliases": ["dbg", "d"], "check": checks.admin},

View file

@ -96,8 +96,12 @@ def radio(instance: bare.bot) -> NoReturn:
if not firstMiss: if not firstMiss:
firstMiss = True firstMiss = True
continue continue
instance.msg("Firepup seems to have stopped the music by mistake :/", "#fp-radio") instance.msg(
instance.sendraw("TOPIC #fp-radio :Firepup radio (Offline) - https://open.spotify.com/playlist/4ctNy3O0rOwhhXIKyLvUZM") "Firepup seems to have stopped the music by mistake :/", "#fp-radio"
)
instance.sendraw(
"TOPIC #fp-radio :Firepup radio (Offline) - https://open.spotify.com/playlist/4ctNy3O0rOwhhXIKyLvUZM"
)
complained = True complained = True
lastTrack = "null" lastTrack = "null"
except Exception: except Exception: