import discord
from credintials import token


class MyClient(discord.Client):
    async def on_ready(self):
        #This function is called when the bot is onine.
        print(f'Logged on as {self.user}!')
        #for me, the output was: "Logged on as Bot23#2391!"

  
        

intents = discord.Intents.default()
intents.message_content = True

client = MyClient(intents=intents)
client.run(token)