Skip to content
Snippets Groups Projects
Commit 4d606de4 authored by Helge Jung's avatar Helge Jung
Browse files

Merge branch 'master' into 'master'

ffpb_fun.py: add some more fun
parents c35b0cbc 95af21d2
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ def shutdown(bot):
pass
@willie.module.rule(r'(?i)(hi|hallo|moin|morgen|guten morgen|re)[ \t]*$')
@willie.module.rule(r'(?i)(hi|hallo|moin|morgen|guten morgen|tag|re)[ \t]*$')
def ffpb_greeting(bot, trigger):
stats = bot.memory['ffpb_stats'] if 'ffpb_stats' in bot.memory else None
......@@ -34,6 +34,8 @@ def ffpb_greeting(bot, trigger):
greeting = random.choice((
'Hi {0}, bist du einer der {2} Clients an unseren {1} Knoten?',
'Hey {0}, schön dich zu sehen. Gerade sind übrigens {1} Knoten mit {2} Clients online.',
'Tach {0}, wenn du gerade im Freifunk bist, sind noch {2} andere Clients an {1} Knoten online',
'Na {0}, du hier? Neben dir sind noch {1} Knoten mit {2} Clients da.',
'{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_unique"]))
......@@ -59,6 +61,7 @@ def ffpb_nofake(bot, trigger):
msg = random.choice((
u'zweifelt {0}s Glaubwürdigkeit an.',
'glaubt nicht, dass {0} echt ist.',
'fakes ... fakes everywhere, nicht wahr {0}',
))
bot.action(msg.format(trigger.nick))
......@@ -98,6 +101,11 @@ def ffpb_grammarnazi_alswie(bot, trigger):
bot.action("denkt spontan an seine Deutschlehrerin")
@willie.module.rule(r'(?i).*(digga|boom|digga boom)')
def ffpb_digga_boom(bot, trigger):
bot.action("feiert nun ganz hart ab auf: https://www.youtube.com/watch?v=3JpNGq8r42Q")
@willie.module.rule(r'(?i)gi(ve |m)me the key to your heart')
@willie.module.rule(r'(?i)(.+\s)?(ssh[- ]?)?(pub(lic)?[- ]?)?key (vom|des) (status[- ]?)?bots?(\s|\.|\?|$)')
def ffpb_botkey(bot, trigger):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment