From 9a4e9b373530eff8d820b23aa5dbd71a8fd455a8 Mon Sep 17 00:00:00 2001 From: Milka64 Date: Fri, 29 Dec 2023 15:32:40 +0100 Subject: [PATCH] Fix welcome text message --- .gitlab-ci.yml | 2 +- kabot/kabot/utils/texte.py | 6 +++--- kabot/setup.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bb226a4..a499b35 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ stages: variables: GL_TOKEN: $GL_TOKEN - VERSION: '0.2.13' + VERSION: '0.2.14' deploy: stage: deploy diff --git a/kabot/kabot/utils/texte.py b/kabot/kabot/utils/texte.py index e1a3da3..a548351 100644 --- a/kabot/kabot/utils/texte.py +++ b/kabot/kabot/utils/texte.py @@ -54,10 +54,10 @@ class Texte(commands.Cog): @commands.Cog.listener() async def on_ready(self): for channel in self.bot.get_all_channels(): - if channel.name == text_channel: + if channel.name == self.text_channel: current_chan = channel - if nickname: - await bot.user.edit(nick=nickname) + if self.nickname: + await self.bot.user.edit(nick=self.nickname) await current_chan.send('Le troll est dans la place !') self.kron.start() diff --git a/kabot/setup.py b/kabot/setup.py index 142ebf6..95f19cd 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.13', + version='0.2.14', zip_safe=False, )