Added help command
This commit is contained in:
parent
5a440d91ab
commit
75d5a3c664
8 changed files with 119 additions and 9 deletions
|
@ -19,6 +19,9 @@ class Translation(commands.Cog):
|
|||
return
|
||||
|
||||
response = translation.translate(text, code)
|
||||
if len(response) == 0:
|
||||
await ctx.send(embed=embed.make_error_embed(f"The translation API doesn't support **{language}**."))
|
||||
return
|
||||
translated = response[0]
|
||||
direction = response[1].split("-")
|
||||
_from = translation.ISO_to_name(direction[0])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue