import discord import asyncio client = discord.Client() @client.event async def on_message(message): print(message.author.id) client.run('token')