import discord
@client.event
async def on_message(message):
members = message.guild.members # also works with ctx.guild.members
for member in members:
if member.bot == True:
print('Member is bot')
else:
print('Member is not bot')