mirror of
https://github.com/Floriansylvain/Risitas_BOT.git
synced 2026-08-19 11:43:16 +02:00
🩹 - 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:
@@ -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.```'
|
||||||
|
|||||||
Reference in New Issue
Block a user