Explorar el Código

fun: react to smiley greeting

Helge Jung hace 9 años
padre
commit
bbb8e7fc81
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      modules/ffpb_fun.py

+ 4 - 0
modules/ffpb_fun.py

@@ -30,6 +30,10 @@ def ffpb_greeting(bot, trigger):
         '{1} Knoten online, {2} Clients im Netz und {0} gibt uns die Ehre - Herzlich Willkommen :)'))
     bot.say(greeting.format(trigger.nick, stats["nodes_active"], stats["clients"]))
 
+@willie.module.rule(r'(o/|\\o)$')
+def ffpb_greeting2(bot, trigger):
+    bot.say('o.O')
+
 @willie.module.rule(r'(?i)(alles )?fake[?!]?')
 def ffpb_nofake(bot, trigger):
     msg = random.choice((