I cant make the bot go online

here is my link https://replit.com/@ghyzdusfvnm/whitelister#main.py @beaucarnes

HI @qeygwujashygwqkashbd !

Welcome to the forum!

The main issue I see, are indentation errors.

Indentation is really important in python.

Right now, you have all of this content inside the async def on_ready():

  print('We have logged in as'{0.user}               'format (client))

  async def on message(message):
    if message.author == client.user:

  if message.content.startswith('$hello'):


That is the main thing you will need to fix.

Also, you will need to delete your env file, because right now everyone can see your secret token bot.

You do not want to expose your secret keys to the world because people get a hold your bot which is bad.

Read through my post on how to add env variables in replit.
You will also see how I do indentation in python.

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