From 81931e5d2bf4f3e99703fc0b88580d7097657181 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Fri, 17 Nov 2023 20:27:06 -0600 Subject: [PATCH] Mostly for debugging --- commands.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands.py b/commands.py index 628e646..2e79951 100644 --- a/commands.py +++ b/commands.py @@ -169,6 +169,9 @@ def nowplaying(bot: bare.bot, chan: str, name: str, message: str) -> None: chan, ) +def whoami(bot: bare.bot, chan: str, name: str, message: str) -> None: + bot.msg(f"I think you are {name}", chan) + data: dict[str, dict[str, Any]] = { "!botlist": {"prefix": False, "aliases": []}, @@ -188,6 +191,7 @@ data: dict[str, dict[str, Any]] = { "amiadmin": {"prefix": True, "aliases": []}, "ping": {"prefix": True, "aliases": []}, "op me": {"prefix": False, "aliases": [], "admin": True}, + "whoami": {"prefix": True, "aliases": []}, } checks: list[str] = [conf.npbase, conf.su] call: dict[str, Callable[[bare.bot, str, str, str], None]] = { @@ -209,4 +213,5 @@ call: dict[str, Callable[[bare.bot, str, str, str], None]] = { "amiadmin": isAdmin, "ping": ping, "op me": op, + "whoami": whoami }