Add some aliases

This commit is contained in:
Firepup Sixfifty 2024-02-20 17:04:17 -06:00
parent cc82ae7893
commit f9183d0a06
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA
3 changed files with 3 additions and 3 deletions

View file

@ -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},

View file

@ -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]] = {

View file

@ -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