mopaapp.blogg.se

Serverstats discord bot
Serverstats discord bot











serverstats discord bot

Then, to retrieve this amount, you would add the dictionary entry.įinal Code: # Somewhere above the command.Įmbed=discord.Embed(title=f"Statystyki serwera ")Įmbed. Messagecounts += 1 # Sets the new count to 1 greater than the original. If not in messagecounts.keys(): # Make sure there's already an entry. ServerStats Discord Bot Described : Shows off your member, channel, role, emoji, boost, and goal count in your server through the use of channels (also fully customizable). On a side note, if you want to use a database anyway, I recommend you check out dataset. A global variable is much simpler to use than a database, however it will be flushed whenever the script ends or is restarted. # Using len().Įmbed.add_field(name="Users:", value=_count, inline=False)Įmbed.add_field(name="Channels:", value=len(), inline=False)įor messages however, you will need to use a database or global variable and manually increase the entry each time a message is sent. Status of the server Next update: 60 Total counter updates. If you don't have the members intent enabled, you can also use _count. ServerStats bot show off your member, channel, role, emoji, boost, and, goal count in your server throw the use of channels (also fully customizable).

serverstats discord bot

For the users and channel counter, you would use the len() function to count how many there are.













Serverstats discord bot