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 5afe261..1d3d407 100644 Binary files a/extras/locales/en/LC_MESSAGES/utility.mo and b/extras/locales/en/LC_MESSAGES/utility.mo differ diff --git a/extras/locales/en/LC_MESSAGES/utility.po b/extras/locales/en/LC_MESSAGES/utility.po index fb63db9..0b9cb9b 100644 --- a/extras/locales/en/LC_MESSAGES/utility.po +++ b/extras/locales/en/LC_MESSAGES/utility.po @@ -34,4 +34,11 @@ msgid "Headers of" msgstr "" msgid "Cannot connect to host" -msgstr "" \ No newline at end of file +msgstr "" + +msgid "git repo" +msgstr "TuxBot-Bot's repository" + +msgid "git text" +msgstr "Whoa, do you want to see my Gitea repository to dissect me? No problem ! I am a Bot, I do not feel the pain! \n https://git.gnous.eu/gnouseu/tuxbot-bot" + diff --git a/extras/locales/fr/LC_MESSAGES/utility.mo b/extras/locales/fr/LC_MESSAGES/utility.mo index b39c851..9819573 100644 Binary files a/extras/locales/fr/LC_MESSAGES/utility.mo and b/extras/locales/fr/LC_MESSAGES/utility.mo differ diff --git a/extras/locales/fr/LC_MESSAGES/utility.po b/extras/locales/fr/LC_MESSAGES/utility.po index 84c8811..2d1931e 100644 --- a/extras/locales/fr/LC_MESSAGES/utility.po +++ b/extras/locales/fr/LC_MESSAGES/utility.po @@ -35,3 +35,9 @@ msgstr "Entêtes de" msgid "Cannot connect to host" msgstr "Impossible de se connecter à l'hôte" + +msgid "git repo" +msgstr "Repos TuxBot-Bot" + +msgid "git text" +msgstr "Whoa tu veux voir mon repos Gitea pour me disséquer ? Pas de soucis ! Je suis un Bot, je ne ressens pas la douleur! \n https://git.gnous.eu/gnouseu/tuxbot-bot"