2018-03-16 03:13:43 -04:00
|
|
|
#!/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):
|
2018-05-25 15:21:18 -04:00
|
|
|
return bot.msg('http://google.com/')
|
|
|
|
bot.msg('http://lmgtfy.com/?q=' + trigger.group(2).replace(' ', '+'))
|