import discord import asyncio client = discord.Client @client.event(): async def on_ready(): print('Online') client.run('your token') #you get a token if you create a bot on the discord developer page