From 13815e4264f0b55d1280a586ac298e08576ece52 Mon Sep 17 00:00:00 2001 From: iou1name Date: Tue, 5 Nov 2019 08:08:23 -0500 Subject: [PATCH] add help message --- warbot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/warbot.py b/warbot.py index 177eb8e..d868e0c 100755 --- a/warbot.py +++ b/warbot.py @@ -158,6 +158,11 @@ class WarBot(irc.IRCClient): Called when the bot receives a PRIVMSG, which can come from channels or users alike. """ + if message == ".help": + cmds = [".help", ".alerts", ".subscribe", ".unsubscribe", + ".update_data", ".cetus"] + cmds.sort() + self.msg(channel, ", ".join(cmds)) if message == ".alerts": self.alert_ids = [] self.checkNewAlerts(channel)