Add message alert functionality to the phenny bot.
When a user joins a channel, and has messages waiting for them, alert them.master
parent
99c0cc2829
commit
60b4bd875b
|
@ -147,5 +147,12 @@ def message(phenny, input):
|
|||
message.rule = r'(.*)'
|
||||
message.priority = 'low'
|
||||
|
||||
def messageAlert(phenny, input):
|
||||
if (input.nick.lower() in phenny.reminders.keys()):
|
||||
phenny.say(input.nick + ': You have messages.')
|
||||
messageAlert.event = 'JOIN'
|
||||
messageAlert.rule = r'.*'
|
||||
messageAlert.priority = 'low'
|
||||
|
||||
if __name__ == '__main__':
|
||||
print __doc__.strip()
|
||||
|
|
Loading…
Reference in New Issue