Add ping command (#12)

Add ping command 88333cc240

Let's be boring d0b9cf8215

Co-authored-by: Firepup Sixfifty <firepyp650@gmail.com>
Reviewed-on: https://git.amcforum.wiki/Firepup650/fire-ircbot/pulls/12
Reviewed-by: Firepup Sixfifty <firepyp650@gmail.com>
Co-authored-by: 9pfs <9pfs@amcforum.wiki>
Co-committed-by: 9pfs <9pfs@amcforum.wiki>
This commit is contained in:
9pfs 2023-11-05 23:52:05 +00:00 committed by Firepup Sixfifty
parent dd5b432ead
commit 9696ed62d8

View file

@ -355,6 +355,11 @@ def main():
mfind(message, ["op me"], False) and name.lower() in adminnames mfind(message, ["op me"], False) and name.lower() in adminnames
): ):
op(name, chan) op(name, chan)
elif mfind(message, ["ping"]):
sendmsg(
f"{name} pong",
chan,
)
elif mfind(message, ["amIAdmin"]): elif mfind(message, ["amIAdmin"]):
sendmsg( sendmsg(
f"{name.lower()} in {adminnames} == {name.lower() in adminnames}", f"{name.lower()} in {adminnames} == {name.lower() in adminnames}",