DeepBlue/cogs/api/thesaurus.py

18 lines
589 B
Python
Raw Permalink Normal View History

2020-01-10 19:39:45 +01:00
import discord
from discord.ext import commands
from api import thesaurus
class Thesaurus(commands.Cog):
def __init__(self, client):
self.client = client
@commands.command(name="thesaurus", description="Makes you smarter.", usage="thesaurus <message>", aliases=["saurus", "thes"])
@commands.cooldown(1, 3)
async def thesaurus(self, ctx, *message):
loading = await ctx.send("Thinking...")
saurus = thesaurus.thesaurufy_sentence(" ".join(message))
await loading.edit(content=saurus)
def setup(client):
client.add_cog(Thesaurus(client))