summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Yu <andrew@andrewyu.org>2022-08-11 21:33:21 +0800
committerAndrew Yu <andrew@andrewyu.org>2022-08-11 21:33:21 +0800
commitf00c76aa3e47fc0f586794b8b5436f10ad544c1b (patch)
treea20d7050d24e6ba3e74a38b56a3e71578889f190
parent341bb39a55bfbd015f9e6fd253b8f5ae19e9e880 (diff)
downloadirc-mod-bot-f00c76aa3e47fc0f586794b8b5436f10ad544c1b.tar.gz
irc-mod-bot-f00c76aa3e47fc0f586794b8b5436f10ad544c1b.zip
Show git repo in :help
-rw-r--r--bot.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot.py b/bot.py
index 6feabae..6e5a79b 100644
--- a/bot.py
+++ b/bot.py
@@ -494,6 +494,9 @@ def handle_privmsg(
else:
send(s, b"MODE", channel.name, b"+o", msg.source.nick)
reply(s, msg, b"I tried to make you a channel operator.")
+ elif chat_command[0] == b"HELP":
+ # TODO for forkers: If you run this bot for public use, and you've changed the code (well, except for config.py), you must update the information below, in accordance with the AGPL.
+ reply(s, msg, b"Hi! I'm a simple IRC bot. Consult git://git.andrewyu.org/irc-mod-bot.git/ for documentation.")
else:
reply(s, msg, b"Unknown command: %s" % chat_command[0])