From a3edb16528116cda955ac5294a895dcb05af3106 Mon Sep 17 00:00:00 2001 From: Romain J Date: Sun, 15 Sep 2019 02:56:41 +0200 Subject: [PATCH] feat(command|basics): create new command to get info on contributors (.credits/.contributors) --- README.md | 2 +- cogs/basics.py | 22 ++++++++++++++++++---- locales/en/LC_MESSAGES/basics.po | 3 +++ locales/fr/LC_MESSAGES/basics.mo | Bin 830 -> 873 bytes locales/fr/LC_MESSAGES/basics.po | 5 ++++- 5 files changed, 26 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0be4848..2038d22 100644 --- a/README.md +++ b/README.md @@ -52,5 +52,5 @@ - [x] ping - [x] info - [ ] help - - [ ] credits `new command` + - [x] credits `new command` \ No newline at end of file diff --git a/cogs/basics.py b/cogs/basics.py index ba8ce30..d293f46 100644 --- a/cogs/basics.py +++ b/cogs/basics.py @@ -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)) diff --git a/locales/en/LC_MESSAGES/basics.po b/locales/en/LC_MESSAGES/basics.po index 7aaceda..194ccd3 100644 --- a/locales/en/LC_MESSAGES/basics.po +++ b/locales/en/LC_MESSAGES/basics.po @@ -43,4 +43,7 @@ msgid "Links" msgstr "" msgid "Invite" +msgstr "" + +msgid "Contributors" msgstr "" \ No newline at end of file diff --git a/locales/fr/LC_MESSAGES/basics.mo b/locales/fr/LC_MESSAGES/basics.mo index f5581a0c89ba9c749b1177678e7238d1b4111e59..23ac26ed2ec93d6cadf6f6f86429b31a59e97c12 100644 GIT binary patch delta 281 zcmdnT_L8mso)F7a1|Z-8Vi_Q=0dbJP9Uz+zi0=Y1NX;7{<_6-QKr8{otc(l{Y(QEL zNQ2a=0%=wtZ33iufwUEr_5jlSKz~-s9+nA<^s~^fV2pZ zz6qp32EPN+f