Hot Summer Deals are Here!
Celebrate with up to 99% off on 17,900 resources
00
Days
09
Hours
29
Mins
32
Secs

Question for discord.py devs out there

Trojanfile

i do stuff
Supreme
Feedback score
1
Posts
116
Reactions
46
Resources
12
Hey people that are developers out there. I am having some trouble with my discord bot displaying the status but refreshing each time a new member joins.

If you're able to help a homie out, would be extra cool.

Here is my code:

import datetime import discord; from discord.ext import commands from discord.utils import get import asyncio intents = discord.Intents().all() client = commands.Bot(command_prefix = '!', intents=intents) #Bot Status @client.event async def on_ready(): servers = len(client.guilds) members = 0 for guild in client.guilds: members += guild.member_count - 1 await client.change_presence(activity = discord.Activity( type = discord.ActivityType.watching, name = f' {members} members!' ))
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Aidaan

Premium
Feedback score
8
Posts
240
Reactions
102
Resources
0
I am a DiscordJS dev but it is kinda the same concept, you need to put it into the member join event, otherwise the status message only happens when the "ready" event is fired.
 

KOMKO190

Feedback score
1
Posts
128
Reactions
33
Resources
0
Last edited:
Top