Skip to content

Commit

Permalink
feat: add some recognition to translation providers
Browse files Browse the repository at this point in the history
  • Loading branch information
Skelmis committed Aug 9, 2023
1 parent ab5af0b commit e90cb33
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions suggestions/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import cooldowns
import disnake
from disnake import Locale
from disnake.ext import commands
from bot_base.paginators.disnake_paginator import DisnakePaginator

Expand Down Expand Up @@ -154,6 +155,18 @@ async def info(
)
embed.add_field("Version", bot.version)
embed.set_footer(text=f"© {year} Anthony Collier")

translations = {
Locale.pt_BR: {
"author": 651386805043593237,
"language": "Portuguese, Brazilian",
"username": "Davi",
}
}
if interaction.locale in translations:
data = translations[interaction.locale]
embed.description += f"\n\n{data['language']} translations by {data['username']}(`{data['author']}`)"

await interaction.send(embed=embed)

@bot.slash_command()
Expand Down

0 comments on commit e90cb33

Please sign in to comment.