feat(command|basics): create new command to get info on contributors (.credits/.contributors)
This commit is contained in:
parent
68daf90938
commit
a3edb16528
5 changed files with 26 additions and 6 deletions
|
@ -52,5 +52,5 @@
|
|||
- [x] ping
|
||||
- [x] info
|
||||
- [ ] help
|
||||
- [ ] credits `new command`
|
||||
- [x] credits `new command`
|
||||
|
|
@ -106,15 +106,29 @@ class Basics(commands.Cog):
|
|||
|
||||
"""---------------------------------------------------------------------"""
|
||||
|
||||
@commands.command(name='credits')
|
||||
@commands.command(name='credits', aliases=['contributors'])
|
||||
async def _credits(self, ctx: commands.Context):
|
||||
e = discord.Embed(
|
||||
title=Texts('basics').get('Contributors'),
|
||||
description=f"- **Romain#5117** https://git.gnous.eu/Romain\n"
|
||||
f"- **Outout#4039** https://git.gnous.eu/mael",
|
||||
color=0x89C4F9
|
||||
color=0x36393f
|
||||
)
|
||||
|
||||
e.add_field(
|
||||
name="**Outout#4039** ",
|
||||
value="• https://git.gnous.eu/mael ⠀\n"
|
||||
"• mael@gnous.eu\n"
|
||||
"• [@outoutxyz](https://twitter.com/outouxyz)",
|
||||
inline=True
|
||||
)
|
||||
e.add_field(
|
||||
name="**Romain#5117** ",
|
||||
value="• https://git.gnous.eu/Romain\n"
|
||||
"• romain@gnous.eu",
|
||||
inline=True
|
||||
)
|
||||
|
||||
await ctx.send(embed=e)
|
||||
|
||||
|
||||
def setup(bot: TuxBot):
|
||||
bot.add_cog(Basics(bot))
|
||||
|
|
|
@ -43,4 +43,7 @@ msgid "Links"
|
|||
msgstr ""
|
||||
|
||||
msgid "Invite"
|
||||
msgstr ""
|
||||
|
||||
msgid "Contributors"
|
||||
msgstr ""
|
Binary file not shown.
|
@ -43,4 +43,7 @@ msgid "Links"
|
|||
msgstr "Liens"
|
||||
|
||||
msgid "Invite"
|
||||
msgstr "Invitation"
|
||||
msgstr "Invitation"
|
||||
|
||||
msgid "Contributors"
|
||||
msgstr "Contributeurs"
|
Loading…
Reference in a new issue