Mostly for debugging
This commit is contained in:
parent
ed24794a40
commit
81931e5d2b
1 changed files with 5 additions and 0 deletions
|
@ -169,6 +169,9 @@ def nowplaying(bot: bare.bot, chan: str, name: str, message: str) -> None:
|
||||||
chan,
|
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]] = {
|
data: dict[str, dict[str, Any]] = {
|
||||||
"!botlist": {"prefix": False, "aliases": []},
|
"!botlist": {"prefix": False, "aliases": []},
|
||||||
|
@ -188,6 +191,7 @@ data: dict[str, dict[str, Any]] = {
|
||||||
"amiadmin": {"prefix": True, "aliases": []},
|
"amiadmin": {"prefix": True, "aliases": []},
|
||||||
"ping": {"prefix": True, "aliases": []},
|
"ping": {"prefix": True, "aliases": []},
|
||||||
"op me": {"prefix": False, "aliases": [], "admin": True},
|
"op me": {"prefix": False, "aliases": [], "admin": True},
|
||||||
|
"whoami": {"prefix": True, "aliases": []},
|
||||||
}
|
}
|
||||||
checks: list[str] = [conf.npbase, conf.su]
|
checks: list[str] = [conf.npbase, conf.su]
|
||||||
call: dict[str, Callable[[bare.bot, str, str, str], None]] = {
|
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,
|
"amiadmin": isAdmin,
|
||||||
"ping": ping,
|
"ping": ping,
|
||||||
"op me": op,
|
"op me": op,
|
||||||
|
"whoami": whoami
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue