I am currently having an issue trying to figure out how to make the messages give a "refreshing" status where each message deletes itself and output the updated message. Right now the bot is just outputting the messages continuously and filling up the text channel. My goal is to have the bot only show 1 embed at a time per action.
If someone can please help me with this that would be great. I have beginner experience in coding, I have taken the code from another open-source and recoded it to my current discord server needs.
Code on GitHub bot.py = https://github.com/bboychris168/Discord-Pug-bot
*ps, i know my code has alot of things wrong with it and can be improved alot.
if(pickNum == 2 or pickNum == 4 or pickNum == 6 or pickNum == 8):
embed = discord.Embed(color=0x03f0fc)
embed.add_field(name="**????CT**\n", value="????" + firstCaptain.mention, inline=True)
embed.add_field(name="**Players** \n", value=" \n ".join(str(x.name) for x in readyUsers), inline=True)
embed.add_field(name="**????T** \n", value="`Other captain pick`", inline=True)
embed.set_footer(text=".pick @user to pick player", icon_url="https://i.imgur.com/gVX3yPJ.gif")
await message.channel.send("????" + firstCaptain.mention, embed=embed)
else:
embed = discord.Embed(color=0x03f0fc)
embed.add_field(name="**????CT**\n", value="`Other captain pick`", inline=True)
embed.add_field(name="**Players** \n", value=" \n ".join(str(x.name) for x in readyUsers), inline=True)
embed.add_field(name="**????T** \n", value="????" + secondCaptain.mention, inline=True)
embed.set_footer(text=".pick @user to pick player", icon_url="https://i.imgur.com/gVX3yPJ.gif")
await message.channel.send("????" + secondCaptain.mention, embed=embed)