From a740f23516fafc9788483c74344bba61f151b230 Mon Sep 17 00:00:00 2001 From: Mike Perez Date: Mon, 9 Oct 2017 14:14:28 -0700 Subject: [PATCH] Thanks & Success bot provide confirmation site url In confirmation of giving a thanks or success post, this will output the wiki url so the user knows where it got posted. Change-Id: I06d637c00dccbee49ad8a60398ac21af4064034e --- statusbot/bot.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/statusbot/bot.py b/statusbot/bot.py index 0fd20aa..509308b 100644 --- a/statusbot/bot.py +++ b/statusbot/bot.py @@ -399,14 +399,18 @@ class StatusBot(irc.bot.SingleServerIRCBot): text = ' '.join(parts[1:]) self.log.info("Processing success from %s: %s" % (nick, text)) self.successlog.log(channel, nick, text) - self.send(channel, "%s: Added success to Success page" % (nick,)) + self.send(channel, "%s: Added success to Success page " + "(https://wiki.openstack.org/wiki/Successes)" + % (nick,)) def handle_thanks_command(self, channel, nick, msg): parts = msg.split() text = ' '.join(parts[1:]) self.log.info("Processing thanks from %s: %s" % (nick, text)) self.thankslog.log(channel, nick, text) - self.send(channel, "%s: Added thanks to Thanks page" % (nick,)) + self.send(channel, "%s: Added your thanks to Thanks page " + "(https://wiki.openstack.org/wiki/Thanks)" + % (nick,)) def handle_status_command(self, channel, nick, msg): parts = msg.split()