|
@@ -29,6 +29,65 @@ class Inform():
|
|
|
log.info('Informing home channel: %s' % message)
|
|
log.info('Informing home channel: %s' % message)
|
|
|
connection.privmsg(self.network.home_channel, message)
|
|
connection.privmsg(self.network.home_channel, message)
|
|
|
|
|
|
|
|
|
|
+class Replyto():
|
|
|
|
|
+ def name(self, connection, replyto):
|
|
|
|
|
+
|
|
|
|
|
+ # Reply with a random message or action.
|
|
|
|
|
+ if random.randint(0, 1) == 0:
|
|
|
|
|
+ message = queries.random_nick_reply_message(self)
|
|
|
|
|
+ if message:
|
|
|
|
|
+ connection.privmsg(replyto, message)
|
|
|
|
|
+ else:
|
|
|
|
|
+ action = queries.random_nick_reply_action(self)
|
|
|
|
|
+ if action:
|
|
|
|
|
+ connection.action(replyto, action)
|
|
|
|
|
+
|
|
|
|
|
+ # messages = [
|
|
|
|
|
+ # "Hello " + event.source.nick + ".",
|
|
|
|
|
+ # "How are you today " + event.source.nick + "?",
|
|
|
|
|
+ # "Piss off " + event.source.nick + "!",
|
|
|
|
|
+ # event.source.nick + ", what are you botherring me for?",
|
|
|
|
|
+ # "Go bother someone else...",
|
|
|
|
|
+ # "Is life treating you fair?",
|
|
|
|
|
+ # "What's up?",
|
|
|
|
|
+ # "Why are you talking to me?",
|
|
|
|
|
+ # "I'm not talking to you!",
|
|
|
|
|
+ # "What have you been up to?",
|
|
|
|
|
+ # "How is life?",
|
|
|
|
|
+ # "What do you want from me?",
|
|
|
|
|
+ # event.source.nick + ", why are you bothering me?",
|
|
|
|
|
+ # event.source.nick + ", when will you stop talking about me?",
|
|
|
|
|
+ # event.source.nick + " I hate you!",
|
|
|
|
|
+ # "Get bent!",
|
|
|
|
|
+ # "Go and cut yourself.",
|
|
|
|
|
+ # "Do you think i care about you?",
|
|
|
|
|
+ # "Stop nickalerting me " + event.source.nick + ", you wanker!",
|
|
|
|
|
+ # ]
|
|
|
|
|
+ # actions = [
|
|
|
|
|
+ # "hides!",
|
|
|
|
|
+ # "dies.",
|
|
|
|
|
+ # "runs away.",
|
|
|
|
|
+ # "is ignoring that.",
|
|
|
|
|
+ # "is not feeling like caring.",
|
|
|
|
|
+ # "is away",
|
|
|
|
|
+ # "will be ignoring that.",
|
|
|
|
|
+ # "is faggaliciouz!! <333",
|
|
|
|
|
+ # "likes you! <3",
|
|
|
|
|
+ # "looks the other way...",
|
|
|
|
|
+ # "does a little dance with " + event.source.nick + ".",
|
|
|
|
|
+ # "makes a little love.",
|
|
|
|
|
+ # "get's down tonight.",
|
|
|
|
|
+ # "thinks SAM Broadcaster sucks raw cocks in hell!",
|
|
|
|
|
+ # "is secretly in love with " + event.source.nick + ".",
|
|
|
|
|
+ # "tosses " + event.source.nick + "'s salad.",
|
|
|
|
|
+ # "tortures " + event.source.nick + " horribly!",
|
|
|
|
|
+ # "is smelling like tuna when looking at " + event.source.nick + ".",
|
|
|
|
|
+ # "sniffing armpits.. Eew! Smells like " + event.source.nick + ".",
|
|
|
|
|
+ # "rapes " + event.source.nick + ".",
|
|
|
|
|
+ # "pets " + event.source.nick + ", and sais: Why what a nice little human you are, and such plentifull organs!"
|
|
|
|
|
+ # ]
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
# class Protectees():
|
|
# class Protectees():
|
|
|
# def update(self, nick, user, host):
|
|
# def update(self, nick, user, host):
|
|
|
# if nick in self.protectees: # On record.
|
|
# if nick in self.protectees: # On record.
|
|
@@ -40,59 +99,6 @@ class Inform():
|
|
|
# if userstatus.atleast_halfop(self, user, self.network.home_channel) or nick == self.connection.get_nickname(): # Update. Is atleast halfop or bot itself.
|
|
# if userstatus.atleast_halfop(self, user, self.network.home_channel) or nick == self.connection.get_nickname(): # Update. Is atleast halfop or bot itself.
|
|
|
# self.protectees[nick] = {'ident': nick + "!" + user + "@" + host}
|
|
# self.protectees[nick] = {'ident': nick + "!" + user + "@" + host}
|
|
|
|
|
|
|
|
-# class Replyto():
|
|
|
|
|
-# def name(connection, event):
|
|
|
|
|
-# messages = [
|
|
|
|
|
-# "Hello " + event.source.nick + ".",
|
|
|
|
|
-# "How are you today " + event.source.nick + "?",
|
|
|
|
|
-# "Piss off " + event.source.nick + "!",
|
|
|
|
|
-# event.source.nick + ", what are you botherring me for?",
|
|
|
|
|
-# "Go bother someone else...",
|
|
|
|
|
-# "Is life treating you fair?",
|
|
|
|
|
-# "What's up?",
|
|
|
|
|
-# "Why are you talking to me?",
|
|
|
|
|
-# "I'm not talking to you!",
|
|
|
|
|
-# "What have you been up to?",
|
|
|
|
|
-# "How is life?",
|
|
|
|
|
-# "What do you want from me?",
|
|
|
|
|
-# event.source.nick + ", why are you bothering me?",
|
|
|
|
|
-# event.source.nick + ", when will you stop talking about me?",
|
|
|
|
|
-# event.source.nick + " I hate you!",
|
|
|
|
|
-# "Get bent!",
|
|
|
|
|
-# "Go and cut yourself.",
|
|
|
|
|
-# "Do you think i care about you?",
|
|
|
|
|
-# "Stop nickalerting me " + event.source.nick + ", you wanker!",
|
|
|
|
|
-# ]
|
|
|
|
|
-# actions = [
|
|
|
|
|
-# "hides!",
|
|
|
|
|
-# "dies.",
|
|
|
|
|
-# "runs away.",
|
|
|
|
|
-# "is ignoring that.",
|
|
|
|
|
-# "is not feeling like caring.",
|
|
|
|
|
-# "is away",
|
|
|
|
|
-# "will be ignoring that.",
|
|
|
|
|
-# "is faggaliciouz!! <333",
|
|
|
|
|
-# "likes you! <3",
|
|
|
|
|
-# "looks the other way...",
|
|
|
|
|
-# "does a little dance with " + event.source.nick + ".",
|
|
|
|
|
-# "makes a little love.",
|
|
|
|
|
-# "get's down tonight.",
|
|
|
|
|
-# "thinks SAM Broadcaster sucks raw cocks in hell!",
|
|
|
|
|
-# "is secretly in love with " + event.source.nick + ".",
|
|
|
|
|
-# "tosses " + event.source.nick + "'s salad.",
|
|
|
|
|
-# "tortures " + event.source.nick + " horribly!",
|
|
|
|
|
-# "is smelling like tuna when looking at " + event.source.nick + ".",
|
|
|
|
|
-# "sniffing armpits.. Eew! Smells like " + event.source.nick + ".",
|
|
|
|
|
-# "rapes " + event.source.nick + ".",
|
|
|
|
|
-# "pets " + event.source.nick + ", and sais: Why what a nice little human you are, and such plentifull organs!"
|
|
|
|
|
-# ]
|
|
|
|
|
-#
|
|
|
|
|
-# # Reply with a random message or action.
|
|
|
|
|
-# if random.randint(0, 1) == 0:
|
|
|
|
|
-# connection.privmsg(event.target, random.choice(messages))
|
|
|
|
|
-# else:
|
|
|
|
|
-# connection.action(event.target, random.choice(actions))
|
|
|
|
|
-
|
|
|
|
|
# class Aggressiveness():
|
|
# class Aggressiveness():
|
|
|
# def retalliation_reason(self, connection, protectee, behaviour):
|
|
# def retalliation_reason(self, connection, protectee, behaviour):
|
|
|
# if protectee == connection.get_nickname(): # Bot itself.
|
|
# if protectee == connection.get_nickname(): # Bot itself.
|