forked from Firepup650/FireBot
sudo: a password is required to list this diff
This commit is contained in:
parent
e5a1ac6897
commit
40ff789fe1
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue