aboutsummaryrefslogtreecommitdiff
path: root/cogs/trans.py
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2020-07-04 15:52:20 +0000
committerAnInternetTroll <lucafulger@gmail.com>2020-07-04 15:52:20 +0000
commit55cef1c7b6c6f4703eedae29965f5b1df5573a56 (patch)
tree4682a9942d17ac6160aeac9fc1add9be16cb04b2 /cogs/trans.py
parente593aa26927db20ce21b7dcf6ec499dad232f01d (diff)
downloadsteve-bot-55cef1c7b6c6f4703eedae29965f5b1df5573a56.tar
steve-bot-55cef1c7b6c6f4703eedae29965f5b1df5573a56.tar.gz
steve-bot-55cef1c7b6c6f4703eedae29965f5b1df5573a56.tar.bz2
steve-bot-55cef1c7b6c6f4703eedae29965f5b1df5573a56.tar.lz
steve-bot-55cef1c7b6c6f4703eedae29965f5b1df5573a56.tar.xz
steve-bot-55cef1c7b6c6f4703eedae29965f5b1df5573a56.tar.zst
steve-bot-55cef1c7b6c6f4703eedae29965f5b1df5573a56.zip
Command descriptions added
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)