diff --git a/commands.py b/commands.py index 80a66db..53bfce3 100644 --- a/commands.py +++ b/commands.py @@ -181,7 +181,7 @@ 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"], "check": checks.admin}, + "restart": {"prefix": True, "aliases": ["reboot", "stop"], "check": checks.admin}, "uptime": {"prefix": True, "aliases": []}, "raw ": {"prefix": True, "aliases": ["cmd "], "check": checks.admin}, "debug": {"prefix": True, "aliases": ["dbg","d"], "check": checks.admin}, diff --git a/config.py b/config.py index 7cd20be..d49055f 100644 --- a/config.py +++ b/config.py @@ -6,7 +6,7 @@ from typing import Optional, Any import bare load_dotenv() -__version__ = "v2.0.13" +__version__ = "v2.0.14" npbase: str = "\[\x0303last\.fm\x03\] [A-Za-z0-9_[\]{}\\|\-^]{1,$MAX} (is listening|last listened) to: \x02.+ - .*\x02( \([0-9]+ plays\)( \[.*\])?)?" # pyright: ignore [reportInvalidStringEscapeSequence] su = "^(su|sudo|(su .*|sudo .*))$" servers: dict[str, dict[str, Any]] = { diff --git a/handlers.py b/handlers.py index 6ba1aff..1f39a79 100644 --- a/handlers.py +++ b/handlers.py @@ -124,7 +124,7 @@ def PRIVMSG(bot: bare.bot, msg: str) -> Union[tuple[None, None], tuple[str, str] cmds.call[check](bot, chan, name, message) handled = True break - if not handled and conf.mfind(message, ["reload"]): + if not handled and conf.mfind(message, ["reload", "r"]): if checks.admin(bot, name, host, chan, "reload"): return "reload", chan handled = True