forked from sopel-irc/sopel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lmgfty]Let me google that for you. Initiat commit
Signed-off-by: Dimitri Molenaars <Tyrope@TyRope.nl>
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() | ||
|