I am new to discord.py, and I am wondering how to give my bot a custom status as I've seen other discord bots have custom status
This is quite easy with the Client.change_presence method.
Bot = commands.Bot(command_prefix=PREFIX, intents=intents, case_insensitive=True) # initialize the bot
@Bot.event
async def on_ready():
await Bot.change_presence(status=discord.Status.online,
activity=discord.Activity(name=f"Activity", type=discord.ActivityType.listening))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.