I have an array I want to send a handful of messages in a for loop with discord.py. I am trying to use the on_ready() command but having a problem with it only sending the first message. I'm fairly new to both async and discord bots. There must be a simpler solution here...
client = discord.Client()
links = []
for x in y:
# do some things
links.append(stuff)
@client.event
async def on_ready():
channel = client.get_channel(12345678910)
for link in links:
await channel.send(link)
client.run(DISCORD_TOKEN)
Thanks for any help in advance!
channelwhen the bot is ready?