This commit is contained in:
Milka64 2023-12-29 15:50:46 +01:00
parent 3cdec52d81
commit 6f2460eaef
3 changed files with 6 additions and 3 deletions

View file

@ -6,7 +6,7 @@ stages:
variables:
GL_TOKEN: $GL_TOKEN
VERSION: '0.2.15'
VERSION: '0.2.16'
deploy:
stage: deploy

View file

@ -64,7 +64,10 @@ class Texte(commands.Cog):
@commands.Cog.listener()
async def on_message(self, message):
if message.author == self.bot.user and not message.content.startswith('!'):
if message.author == self.bot.user and message.content.startswith('!'):
if message.content.startswith('!'):
ctx = await self.bot.get_context(message)
await self.bot.invoke(ctx)
return
else:
if self.bot.user in message.mentions \

View file

@ -61,6 +61,6 @@ setup(
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/None/kabot',
version='0.2.15',
version='0.2.16',
zip_safe=False,
)