WIP #32
This commit is contained in:
parent
3cdec52d81
commit
6f2460eaef
3 changed files with 6 additions and 3 deletions
|
@ -6,7 +6,7 @@ stages:
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GL_TOKEN: $GL_TOKEN
|
GL_TOKEN: $GL_TOKEN
|
||||||
VERSION: '0.2.15'
|
VERSION: '0.2.16'
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
|
@ -64,7 +64,10 @@ class Texte(commands.Cog):
|
||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_message(self, message):
|
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
|
return
|
||||||
else:
|
else:
|
||||||
if self.bot.user in message.mentions \
|
if self.bot.user in message.mentions \
|
||||||
|
|
|
@ -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.15',
|
version='0.2.16',
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue