This commit is contained in:
Milka64 2023-12-28 11:32:02 +01:00
parent 8e654da976
commit c3e590fd2c
3 changed files with 11 additions and 5 deletions

View file

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

View file

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

View file

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