discord.py "on_ready" running twice code example
Example: discord py on ready
@client.event # Tells Discord that it's a event
async def on_ready(): # Important that the
# name of the event is
# "on_ready"
print("Ready!") # Prints ready to the console