Reputation: 23
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
Upvotes: 2
Views: 1769
Reputation: 61
There is a trick
await Bot.change_presence(activity=discord.Activity(type=discord.ActivityType.custom, name="custom", state="Your custom status"))
If you set name="custom", the Discord client doesn't read this name, so you can set your full custom status on state="Your custom status"
Upvotes: 1
Reputation: 857
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))
Upvotes: 1