fulvia/modules/lmgtfy.py
2020-01-07 18:58:19 -05:00

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 len(trigger.args) < 2:
return bot.msg('http://google.com/')
bot.msg('http://lmgtfy.com/?q=' + trigger.args[1].replace(' ', '+'))