From 3ae55bc92e7f7947d4aaa27d81d57fc0cd5ebfdd Mon Sep 17 00:00:00 2001 From: Romain J Date: Sat, 28 Sep 2019 01:14:59 +0200 Subject: [PATCH] refactor(command|utility): rewrite git --- README.md | 2 +- cogs/utility.py | 15 +++++++++++++++ extras/locales/en/LC_MESSAGES/utility.mo | Bin 444 -> 669 bytes extras/locales/en/LC_MESSAGES/utility.po | 9 ++++++++- extras/locales/fr/LC_MESSAGES/utility.mo | Bin 809 -> 1035 bytes extras/locales/fr/LC_MESSAGES/utility.po | 6 ++++++ 6 files changed, 30 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2010f04..a4aa5fa 100644 --- a/README.md +++ b/README.md @@ -77,5 +77,5 @@ - [ ] ytdiscover - [x] iplocalise - [x] getheaders - - [ ] git + - [x] git - [ ] quote \ No newline at end of file diff --git a/cogs/utility.py b/cogs/utility.py index 381894d..2d75f7f 100644 --- a/cogs/utility.py +++ b/cogs/utility.py @@ -99,6 +99,21 @@ class Utility(commands.Cog): await ctx.send(f"{Texts('utility').get('Cannot connect to host')} " f"{addr}") + """---------------------------------------------------------------------""" + + @commands.command(name='git', aliases=['sources', 'source', 'github']) + async def _git(self, ctx): + e = discord.Embed( + title=Texts('utility').get('git repo'), + description=Texts('utility').get('git text'), + colour=0xE9D460 + ) + e.set_author( + name='Gnous', + icon_url="https://cdn.gnous.eu/logo1.png" + ) + await ctx.send(embed=e) + def setup(bot: TuxBot): bot.add_cog(Utility(bot)) diff --git a/extras/locales/en/LC_MESSAGES/utility.mo b/extras/locales/en/LC_MESSAGES/utility.mo index 5afe2611a5017f86254e6ee633d6b55f58954979..1d3d407b10a3deb876cc4fe3eb35607e2447569b 100644 GIT binary patch delta 316 zcmYk0F;2rk5JhbW5~55)L-AA5BymT9KnNN{0TmJr6l*exSF$~pcO2p>5 za11KW!nZ|{k>0+)+R^NMZGY^ne}{v&h&3PwY5QaC2NQe)!AgQ)eR@N35^v9&op4