fix #11
This commit is contained in:
parent
8e654da976
commit
c3e590fd2c
3 changed files with 11 additions and 5 deletions
|
@ -6,6 +6,7 @@ stages:
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GL_TOKEN: $GL_TOKEN
|
GL_TOKEN: $GL_TOKEN
|
||||||
|
VERSION: '0.2.3'
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
@ -13,11 +14,15 @@ deploy:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: 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:
|
push:
|
||||||
stage: 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:
|
login:
|
||||||
stage: login
|
stage: login
|
||||||
|
|
|
@ -210,8 +210,7 @@ class Audio(commands.Cog, name="Commandes Audio"):
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def repeat(self, ctx):
|
async def repeat(self, ctx):
|
||||||
# if ctx.message.author.name == self.bot.user.name:
|
"""Rejouer le dernier son joué"""
|
||||||
# return
|
|
||||||
user = ctx.message.author.name
|
user = ctx.message.author.name
|
||||||
source = self.sounds_history[0]
|
source = self.sounds_history[0]
|
||||||
self.sounds.append(source)
|
self.sounds.append(source)
|
||||||
|
@ -250,6 +249,7 @@ class Audio(commands.Cog, name="Commandes Audio"):
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def stop(self, ctx):
|
async def stop(self, ctx):
|
||||||
|
"""Stoppe la lecture en cours"""
|
||||||
await ctx.voice_client.stop()
|
await ctx.voice_client.stop()
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
|
@ -270,6 +270,7 @@ class Audio(commands.Cog, name="Commandes Audio"):
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def joke(self, ctx, folder=None):
|
async def joke(self, ctx, folder=None):
|
||||||
|
"""Joue un son (aléatoire par défaut)"""
|
||||||
try:
|
try:
|
||||||
user = ctx.message.author.name
|
user = ctx.message.author.name
|
||||||
if not folder or not ctx.message.content:
|
if not folder or not ctx.message.content:
|
||||||
|
|
|
@ -61,6 +61,6 @@ setup(
|
||||||
test_suite='tests',
|
test_suite='tests',
|
||||||
tests_require=test_requirements,
|
tests_require=test_requirements,
|
||||||
url='https://github.com/None/kabot',
|
url='https://github.com/None/kabot',
|
||||||
version='0.2.2',
|
version='0.2.3',
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue