【发布时间】:2020-03-26 07:28:27
【问题描述】:
这对我来说可能很难,但我相信 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')
【问题讨论】:
标签: python bots discord discord.py