From f395f458b79832ac213a4b61986b1639d549d9b2 Mon Sep 17 00:00:00 2001 From: Florian SYLVAIN Date: Mon, 8 Feb 2021 10:43:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20-=20The=20"twitch=20channel=20do?= =?UTF-8?q?esn't=20exist"=20message=20wasn't=20sending=20+=20added=20a=20l?= =?UTF-8?q?ittle=20timing=20before=20sending=20"the=20chat=20was=20success?= =?UTF-8?q?fully=20stopped".?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index ffccba2..baadefd 100644 --- a/main.py +++ b/main.py @@ -83,7 +83,7 @@ async def chat_set(ctx, arg1): else: await ctx.send('```Something went wrong when trying to access Twitch IRC.```') else: - return('```This twitch channel doesn\'t seems to exist.```') + await ctx.send('```This twitch channel doesn\'t seems to exist.```') @bot.command() async def chat_stop(ctx): @@ -91,6 +91,7 @@ async def chat_stop(ctx): if chan in list(chats): chats[chan].twitch.stop() del chats[chan] + await asyncio.sleep(1) message = '```The chat was successfully stopped !```' else: message = '```There is no active chat in this channel.```'