My bot isn't working yet. Can someone help me?


Can someone say what should I fix? (Text in other language because i’m from Brazil)
Code:

import discord
import os

client = discord.Client()

@client.event
async def on_ready():
  print("Nós logamos como {0.user}".format(client))

@client.event
async def on_message(message):
  if message.author == client.user:
    return

  if message.content.startswith("*Idocode"):
    await message.channel.send("Olá!! Já se inscreveu aos ótimos cursos da I do Code? Se não, entre no link aqui! https://idocode.com.br/")

#Don't enter the link

  client.run(os.getenv("TOKEN"))

It is really hard to say much with a picture of the code.

So what should I do?

It would be helpful if you paste your code into a forum post and include the text of the error messages.

The only thing it shows is nothing, no error messages, no nothing

?

What forum post, exactly? I’m new to this platform

I edited the post, hope you can now see the problem with it. :wink:

I found the problem with the code. Thanks for trying to help.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.