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
This commit is contained in:
Mike Perez 2017-10-09 14:14:28 -07:00
parent 4316cbfadd
commit a740f23516
1 changed files with 6 additions and 2 deletions

View File

@ -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()