Formatting
This commit is contained in:
parent
a5e1c1c96b
commit
69976f5505
3 changed files with 13 additions and 8 deletions
4
bot.py
4
bot.py
|
@ -36,9 +36,7 @@ class bot(bare.bot):
|
|||
conf.servers[server]["admins"] if "admins" in conf.servers[server] else []
|
||||
)
|
||||
self.ignores = (
|
||||
conf.servers[server]["ignores"]
|
||||
if "ignores" in conf.servers[server]
|
||||
else []
|
||||
conf.servers[server]["ignores"] if "ignores" in conf.servers[server] else []
|
||||
)
|
||||
self.__version__ = conf.__version__
|
||||
self.npallowed = conf.npallowed
|
||||
|
|
|
@ -185,8 +185,7 @@ def fmpull(bot: bare.bot, chan: str, name: str, message: str) -> None:
|
|||
)
|
||||
if song:
|
||||
bot.msg(
|
||||
"Firepup is currently listening to: "
|
||||
+ song.__str__(),
|
||||
"Firepup is currently listening to: " + song.__str__(),
|
||||
chan,
|
||||
)
|
||||
else:
|
||||
|
@ -205,7 +204,11 @@ data: dict[str, dict[str, Any]] = {
|
|||
"bugs bugs bugs": {"prefix": False, "aliases": []},
|
||||
"hi $BOTNICK": {"prefix": False, "aliases": ["hello $BOTNICK"]},
|
||||
# [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": []},
|
||||
"raw ": {"prefix": True, "aliases": ["cmd "], "check": checks.admin},
|
||||
"debug": {"prefix": True, "aliases": ["dbg", "d"], "check": checks.admin},
|
||||
|
|
|
@ -96,8 +96,12 @@ def radio(instance: bare.bot) -> NoReturn:
|
|||
if not firstMiss:
|
||||
firstMiss = True
|
||||
continue
|
||||
instance.msg("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")
|
||||
instance.msg(
|
||||
"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
|
||||
lastTrack = "null"
|
||||
except Exception:
|
||||
|
|
Loading…
Reference in a new issue