diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 675136c..5a0450e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ stages: variables: GL_TOKEN: $GL_TOKEN - VERSION: '0.2.9' + VERSION: '0.2.10' deploy: stage: deploy diff --git a/kabot/kabot/utils/texte.py b/kabot/kabot/utils/texte.py index 51e140c..481d91b 100644 --- a/kabot/kabot/utils/texte.py +++ b/kabot/kabot/utils/texte.py @@ -64,18 +64,7 @@ class Texte(commands.Cog): @commands.Cog.listener() async def on_message(self, message): - if message.author == self.bot.user or message.content.startswith('!'): - if message.content.startswith('!'): - for channel in self.bot.get_all_channels(): - if channel.name == self.text_chan: - current_chan = channel - async for msg in current_chan.history(limit=1): - last_message = msg - ctx = await self.bot.get_context(last_message) - ctx.message.content = "" - cmd_name = message.content.split()[0].replace('!','') - cmd = self.bot.get_command(cmd_name) - await cmd.invoke(ctx) + if message.author == self.bot.user and not message.content.startswith('!'): return else: if self.bot.user in message.mentions \ diff --git a/kabot/setup.py b/kabot/setup.py index e584bee..99e4757 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.9', + version='0.2.10', zip_safe=False, )