对我来说可能很难,但我相信 stackoverflow 的力量,
我想将机器人状态从播放更改为观看。我试试这个,但它仍然在播放状态。
代码:
import discord
from discord.ext.commands import Bot
from discord.ext import commands
import asyncio
PREFIX = ("$")
bot = commands.Bot(command_prefix=PREFIX, description='Hi')
@bot.event
async def on_ready():
activity = discord.Game(name="Netflix", type=3)
await bot.change_presence(status=discord.Status.idle, activity=activity)
print("Bot is ready!")
bot.run('TOKEN')
Run Code Online (Sandbox Code Playgroud)