irc.reply("Welcome to #freenet! If you have a question, please ask it. People here are volunteers, so they may take several minutes to answer. ")
#irc.reply("I am the welcome bot. I write if it’s quiet for "+str(wait)+"s after a webuser joins. ")
+ """Write a motivating message"""
+ irc.reply("Welcome back, "+nick+"! Thank you for your great work!")
"""The SupportBot welcomes new users who say something after 30s, if no other user wrote after the new user. It’s main goal is to tell the user that a real user should drop by soon.
Just ignore it: It will work on its own."""
self.__parent = super(SupportBot, self)
self.watchnicks = ["qwebirc"]
+ self.thanknicks = ["p0s", "toad"]
def doJoin(self, irc, msg):
"""Check if the user needs to be greeted."""
- if not True in (msg.nick.startswith(nick) for nick in self.watchnicks):
+ if not True in (msg.nick.startswith(nick) for nick in self.watchnicks):
channels = msg.args.split(',')
# only greet a person once.
+ if True in (msg.nick.startswith(nick) for nick in self.thanknicks):
+ return thank(irc, msg.nick)
t = Timer(self.wait, self.conditionalMessage, [irc, msg])