Add ping command (#12)
Add ping command88333cc240
Let's be boringd0b9cf8215
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:
parent
dd5b432ead
commit
9696ed62d8
1 changed files with 5 additions and 0 deletions
|
@ -355,6 +355,11 @@ def main():
|
|||
mfind(message, ["op me"], False) and name.lower() in adminnames
|
||||
):
|
||||
op(name, chan)
|
||||
elif mfind(message, ["ping"]):
|
||||
sendmsg(
|
||||
f"{name} pong",
|
||||
chan,
|
||||
)
|
||||
elif mfind(message, ["amIAdmin"]):
|
||||
sendmsg(
|
||||
f"{name.lower()} in {adminnames} == {name.lower() in adminnames}",
|
||||
|
|
Loading…
Reference in a new issue