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."""
|
2020-01-07 18:58:19 -05:00
|
|
|
if len(trigger.args) < 2:
|
2018-05-25 15:21:18 -04:00
|
|
|
return bot.msg('http://google.com/')
|
2020-01-07 18:58:19 -05:00
|
|
|
bot.msg('http://lmgtfy.com/?q=' + trigger.args[1].replace(' ', '+'))
|