diff --git a/lmgtfy.py b/lmgtfy.py new file mode 100644 index 0000000000..ae90963e93 --- /dev/null +++ b/lmgtfy.py @@ -0,0 +1,20 @@ +""" +lmgtfy.py - Willie Let me Google that for you module +Copyright 2013, Dimitri Molenaars http://tyrope.nl/ +Licensed under the Eiffel Forum License 2. + +http://willie.dftba.net/ +""" + +def issue(willie, trigger): + """Let me just... google that for you.""" + #No input + if not trigger.group(2): + return willie.say('http://google.com/') + willie.say('http://lmgtfy.com/?q='+trigger.group(2).replace(' ','+')) +issue.commands = ['lmgtfy','lmgify','gify','gtfy'] +issue.priority = 'medium' + +if __name__ == '__main__': + print __doc__.strip() +