From 55cef1c7b6c6f4703eedae29965f5b1df5573a56 Mon Sep 17 00:00:00 2001 From: AnInternetTroll Date: Sat, 4 Jul 2020 16:52:20 +0100 Subject: Command descriptions added --- cogs/trans.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cogs/trans.py') diff --git a/cogs/trans.py b/cogs/trans.py index 9c5d307..9ca1004 100755 --- a/cogs/trans.py +++ b/cogs/trans.py @@ -31,6 +31,7 @@ class Trans(commands.Cog): @commands.command(help="Translate text in english (using google translate)", brief="Translate to english", aliases=["翻译", "脑热", "动漫"]) async def translate(self, ctx, *, message): + """Translate to english""" response = await translateMsg(message) embed=discord.Embed(title="Translation",description=f"{ctx.message.author.mention} says:", timestamp=ctx.message.created_at, color=0x4d9aff) embed.add_field(name=f"[{response['detectedSourceLanguage']}] Source:" , value=response['input'], inline=False) @@ -39,6 +40,7 @@ class Trans(commands.Cog): @commands.command() async def trans(self, ctx, lan, *, message): + """Translate to a specific language""" response = await translateMsg(message, lan) embed=discord.Embed(title="Translation",description=f"{ctx.message.author.mention} says:", timestamp=ctx.message.created_at, color=0x4d9aff) embed.add_field(name=f"[{response['detectedSourceLanguage']}] Source:" , value=response['input'], inline=False) -- cgit v1.2.3