From c3e590fd2c7a81bd6f39bea7568d9e6192db5c57 Mon Sep 17 00:00:00 2001 From: Milka64 Date: Thu, 28 Dec 2023 11:32:02 +0100 Subject: [PATCH] fix #11 --- .gitlab-ci.yml | 9 +++++++-- kabot/kabot/utils/audio.py | 5 +++-- kabot/setup.py | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 691a9c4..db2e650 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ stages: variables: GL_TOKEN: $GL_TOKEN + VERSION: '0.2.3' deploy: stage: deploy @@ -13,11 +14,15 @@ deploy: build: stage: build - script: sudo docker build -t hub.0w.tf/milka64/kabot:latest . + script: + - sudo docker build -t hub.0w.tf/milka64/kabot:$VERSION . + - sudo docker build -t hub.0w.tf/milka64/kabot:latest . push: stage: push - script: sudo docker push hub.0w.tf/milka64/kabot:latest + script: + - sudo docker push hub.0w.tf/milka64/kabot:$VERSION + - sudo docker push hub.0w.tf/milka64/kabot:latest login: stage: login diff --git a/kabot/kabot/utils/audio.py b/kabot/kabot/utils/audio.py index f1fac67..495fc45 100644 --- a/kabot/kabot/utils/audio.py +++ b/kabot/kabot/utils/audio.py @@ -210,8 +210,7 @@ class Audio(commands.Cog, name="Commandes Audio"): @commands.command() async def repeat(self, ctx): - # if ctx.message.author.name == self.bot.user.name: - # return + """Rejouer le dernier son joué""" user = ctx.message.author.name source = self.sounds_history[0] self.sounds.append(source) @@ -250,6 +249,7 @@ class Audio(commands.Cog, name="Commandes Audio"): @commands.command() async def stop(self, ctx): + """Stoppe la lecture en cours""" await ctx.voice_client.stop() @commands.command() @@ -270,6 +270,7 @@ class Audio(commands.Cog, name="Commandes Audio"): @commands.command() async def joke(self, ctx, folder=None): + """Joue un son (aléatoire par défaut)""" try: user = ctx.message.author.name if not folder or not ctx.message.content: diff --git a/kabot/setup.py b/kabot/setup.py index ebef0c8..873ff53 100644 --- a/kabot/setup.py +++ b/kabot/setup.py @@ -61,6 +61,6 @@ setup( test_suite='tests', tests_require=test_requirements, url='https://github.com/None/kabot', - version='0.2.2', + version='0.2.3', zip_safe=False, )