##我都试图使自定义状态不断获取和错误这是我的代码
import discord
import os
client = discord.Client()
token = os.environ['token']
client.on("ready", () =>{
console.log(`Logged in as ${client.user.tag}!`);
client.user.setPresence({
status: "online", // You can show online, idle... Do not disturb is dnd
game: {
name: "Next update coming soon"// The message shown
type: "PLAYING" // PLAYING, WATCHING, LISTENING, STREAMING,
}
});
});
client.run(token)
这是错误
File "main.py", line 18
client.on("ready", () =>{
^
SyntaxError: invalid syntax
任何帮助,因为我真的想让这个机器人运行,但我无法阻止这个错误?