feat(command|basics): create new command to get info on contributors (.credits/.contributors)

This commit is contained in:
Romain J 2019-09-15 02:56:41 +02:00
parent 68daf90938
commit a3edb16528
5 changed files with 26 additions and 6 deletions

View file

@ -52,5 +52,5 @@
- [x] ping
- [x] info
- [ ] help
- [ ] credits `new command`
- [x] credits `new command`

View file

@ -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))

View file

@ -43,4 +43,7 @@ msgid "Links"
msgstr ""
msgid "Invite"
msgstr ""
msgid "Contributors"
msgstr ""

Binary file not shown.

View file

@ -43,4 +43,7 @@ msgid "Links"
msgstr "Liens"
msgid "Invite"
msgstr "Invitation"
msgstr "Invitation"
msgid "Contributors"
msgstr "Contributeurs"