mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Refactored lmgtfy
This commit is contained in:
parent
77bed58c45
commit
9e09b405b2
@ -131,13 +131,10 @@ class General:
|
||||
self.stopwatches.pop(author.id, None)
|
||||
|
||||
@commands.command()
|
||||
async def lmgtfy(self, *text):
|
||||
async def lmgtfy(self, *, search_terms : str):
|
||||
"""Creates a lmgtfy link"""
|
||||
if text == ():
|
||||
await self.bot.say("lmgtfy [search terms]")
|
||||
return
|
||||
text = "+".join(text)
|
||||
await self.bot.say("http://lmgtfy.com/?q=" + text)
|
||||
search_terms = search_terms.replace(" ", "+")
|
||||
await self.bot.say("http://lmgtfy.com/?q={}".format(search_terms))
|
||||
|
||||
@commands.command(no_pm=True, hidden=True)
|
||||
async def hug(self, user : discord.Member, intensity : int=1):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user