Fix welcome text message
This commit is contained in:
parent
2fadbe74c0
commit
9a4e9b3735
3 changed files with 5 additions and 5 deletions
|
@ -6,7 +6,7 @@ stages:
|
|||
|
||||
variables:
|
||||
GL_TOKEN: $GL_TOKEN
|
||||
VERSION: '0.2.13'
|
||||
VERSION: '0.2.14'
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue