im now making Discord bot, but how do i use the new way to use .env variable? repl.it make new update. i dont know what to enter, what to do. and plus, i have error saying
‘SyntaxError: invalid syntax’. i write:
@client.event
async def on_message(message):
if message.author == client.user:
return
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.