sudo: a password is required to list this diff

This commit is contained in:
Firepup Sixfifty 2024-11-14 12:01:34 -06:00
parent e5a1ac6897
commit 40ff789fe1
Signed by: Firepup650
SSH key fingerprint: SHA256:cb8sEJwc0kQJ6/nMUhscWRe35itf0NFMdSKl3v4qt48

View file

@ -185,11 +185,11 @@ def reboot(bot: bare.bot, chan: str, name: str, message: str) -> None:
def sudo(bot: bare.bot, chan: str, name: str, message: str) -> None: def sudo(bot: bare.bot, chan: str, name: str, message: str) -> None:
if checks.admin(bot, name): if checks.admin(bot, name):
bot.msg("Error - system failure, contact system operator", chan) bot.msg("Operation not permitted", chan)
elif "bot" in name.lower(): elif "bot" in name.lower():
bot.log("lol, no.") bot.log("lol, no.")
else: else:
bot.msg("Access Denied", chan) bot.msg('sudo: a password is required', chan)
def nowplaying(bot: bare.bot, chan: str, name: str, message: str) -> None: def nowplaying(bot: bare.bot, chan: str, name: str, message: str) -> None: