Skip to content Skip to sidebar Skip to footer

How Make Custom Status Discord.py

Why is my code not working? @bot.event async def on_ready(): print('Bot is now working!') await bot.change_presence(activity=discord.CustomActivity(name='Custom status' ,em

Solution 1:

I'm late to the party, WayToDoor is right, bots can't use custom status, I found that they "can use it" but it's invisible except bots can see it's a custom status and you will see "custom status" on the bot profile.

There is Playing, Watching, Listening to, and Streaming available for the bots no problem

You also now have an option to use "Competing in" too, which has type 5. I can't see it on the docs yet so I'm assuming it's not implemented yet.

#this is how "Competing in" is set.
discord.Activity(name="Test", type=5)

this should work.

Solution 2:

Solution 3:

try these:

# Setting `Playing ` statusawait bot.change_presence(activity=discord.Game(name="a game"))

# Setting `Streaming ` statusawait bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url))

# Setting `Listening ` statusawait bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song"))

# Setting `Watching ` statusawait bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="a movie"))

Solution 4:

Try this:

@bot.command(pass_context=True)asyncdefSelf_Clock(ctx):
    print("[+]: Status Changer Loaded")
    await ctx.message.delete()
    from datetime import datetime
    headers = {
        'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7',
        'Content-Type': 'application/json',
        'Authorization': token,
    }
    request = requests.Session()
    whileTrue:
        now = datetime.now()
        current_time = now.strftime("%H:%M:%S")
        setting = {
            'status': "online",
            "custom_status": {"text": f"[+]: My current time: {current_time}"}
        }
        request.patch("https://canary.discordapp.com/api/v6/users/@me/settings",headers=headers, json=setting, timeout=10)
        time.sleep(1)

Post a Comment for "How Make Custom Status Discord.py"