SyntaxError: invalid syntaxreplit discord bot

Hello al i have tint issue my code :

import discord
import os

client = discord.Client()
async def on_ready():
 await client.change_presence(activity = discord.status.idle, activity=discord.game('Dm for suport')




 
 
client.run('TOKEN')
   TOKEN=[my_secret = os.environ['TOKEN']]

comes back with this error

  File "main.py", line 13
    client.run('TOKEN')
    ^
SyntaxError: invalid syntax
 

any help???

Syntax error means there’s something that’s breaking rules of the programming language. Because of that place where error is detected may not be the same line in which error is. Take a closer look at line with await and particularly at the brackets in that line.

Pls check is it caps client is making this error… client = discord.Client()

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