mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-03 16:39:25 +01:00
Convert irc.queueMsg(callbacks.reply to irc.reply
This commit is contained in:
parent
8b200efaa0
commit
7e01b8a74d
@ -43,25 +43,25 @@ class Friendly(callbacks.PrivmsgRegexp):
|
||||
r"(?:heya?|(?:w(?:hat'?s\b|as)s?up)|howdy|hi|hello)$"
|
||||
if irc.nick in msg.args[1]:
|
||||
s = 'howdy, %s :)' % msg.nick
|
||||
irc.queueMsg(callbacks.reply(msg, s, prefixName=False))
|
||||
irc.reply(msg, s, prefixName=False)
|
||||
|
||||
def goodbye(self, irc, msg, match):
|
||||
r"(?:good)?bye|adios|vale|ciao|au revoir|seeya|night$"
|
||||
if irc.nick in msg.args[1]:
|
||||
s = 'seeya, %s!' % msg.nick
|
||||
irc.queueMsg(callbacks.reply(msg, s, prefixName=False))
|
||||
irc.reply(msg, s, prefixName=False)
|
||||
|
||||
def exclaim(self, irc, msg, match):
|
||||
r"^([^\s]+)!$"
|
||||
if match.group(1) == irc.nick:
|
||||
s = msg.nick + '!'
|
||||
irc.queueMsg(callbacks.reply(msg, s, prefixName=False))
|
||||
irc.reply(msg, s, prefixName=False)
|
||||
|
||||
def beGracious(self, irc, msg, match):
|
||||
r"\b(?:thank'?s?|thx|tnks?)\b"
|
||||
if irc.nick in msg.args[1]:
|
||||
s = 'you\'re welcome, %s' % msg.nick
|
||||
irc.queueMsg(callbacks.reply(msg, s, prefixName=False))
|
||||
irc.reply(msg, s, prefixName=False)
|
||||
|
||||
|
||||
Class = Friendly
|
||||
|
Loading…
Reference in New Issue
Block a user