aboutsummaryrefslogtreecommitdiff
path: root/cogs/trans.py
diff options
context:
space:
mode:
Diffstat (limited to 'cogs/trans.py')
-rwxr-xr-xcogs/trans.py2
1 files changed, 2 insertions, 0 deletions
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)