🩹 - The "twitch channel doesn't exist" message wasn't sending + added a little timing before sending "the chat was successfully stopped".

This commit is contained in:
Florian SYLVAIN
2021-02-08 10:43:09 +01:00
parent 8c132a3bef
commit f395f458b7
+2 -1
View File
@@ -83,7 +83,7 @@ async def chat_set(ctx, arg1):
else: else:
await ctx.send('```Something went wrong when trying to access Twitch IRC.```') await ctx.send('```Something went wrong when trying to access Twitch IRC.```')
else: else:
return('```This twitch channel doesn\'t seems to exist.```') await ctx.send('```This twitch channel doesn\'t seems to exist.```')
@bot.command() @bot.command()
async def chat_stop(ctx): async def chat_stop(ctx):
@@ -91,6 +91,7 @@ async def chat_stop(ctx):
if chan in list(chats): if chan in list(chats):
chats[chan].twitch.stop() chats[chan].twitch.stop()
del chats[chan] del chats[chan]
await asyncio.sleep(1)
message = '```The chat was successfully stopped !```' message = '```The chat was successfully stopped !```'
else: else:
message = '```There is no active chat in this channel.```' message = '```There is no active chat in this channel.```'