13 lines
330 B
Python
Executable File
13 lines
330 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Let me google that for you.
|
|
"""
|
|
from module import commands
|
|
|
|
@commands('lmgtfy')
|
|
def googleit(bot, trigger):
|
|
"""Let me just... google that for you."""
|
|
if not trigger.group(2):
|
|
return bot.say('http://google.com/')
|
|
bot.say('http://lmgtfy.com/?q=' + trigger.group(2).replace(' ', '+'))
|