Counting discord bot python

Counting discord bot python : You might need to convert to string first….

counter = 0

if message.channel.startswith(str(counter)):
    await message.channel.send("test, this will be changed later")
    counter += 1

Second Solution :

What does this return to the channel?

counter = 0

await channel.send(f'Start waiting for counter: {counter}')

if message.channel.startswith(str(counter)):
    counter += 1
    await channel.send(f'waiting for new counter: {counter}')

Leave a Comment