vendredi 7 mai 2021

If not being caught disord.py

for index, i in enumerate(txtare):
    await ctx.send(f'What is the {txtare[index]}')
    try:

        variable = await client.wait_for('message',timeout=time_out, check=check)
        if variable.content == '!end':
            print(variable.content)
            return
        draw.text((x_axis[index], y_axis[index]),codecs.decode(str(variable.content), "unicode_escape"),(0,0,0),font=font2)
    except asyncio.TimeoutError:
        await ctx.send("Time out!")
        return

why isn't it stopping neither recognizing that I wrote !end

Aucun commentaire:

Enregistrer un commentaire