diff options
author | Parker <contact@pkrm.dev> | 2024-04-03 15:42:03 -0500 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-04-03 15:42:03 -0500 |
commit | 831fad53f16476068bb9f842a1d469bb674c4b1c (patch) | |
tree | 4ec85de12bcd10a8c5224f58cb2d8182efbf8ab3 | |
parent | dac66a0974270c41f19ec5959e262aaa8cce0803 (diff) |
Move `user_count.py` to `info.py` in `owner` folder
-rw-r--r-- | code/cogs/owner/info.py (renamed from code/cogs/user_count.py) | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/code/cogs/user_count.py b/code/cogs/owner/info.py index c2d7321..dfa4844 100644 --- a/code/cogs/user_count.py +++ b/code/cogs/owner/info.py @@ -1,10 +1,11 @@ from discord.ext import commands import discord +import lavalink from global_variables import BOT_COLOR -class UserCount(commands.Cog): +class Info(commands.Cog): def __init__(self, bot): self.bot = bot @@ -29,7 +30,7 @@ class UserCount(commands.Cog): embed = discord.Embed( title="User Count", - description=f"Total Members: `{total_members:,}`\nTotal Guilds: `{len(self.bot.guilds):,}`", + description=f"Total Members: `{total_members:,}`\nTotal Guilds: `{len(self.bot.guilds):,}`\n\nTotal Players: `{self.bot.lavalink.nodes[0].stats.players}`", color=BOT_COLOR, ) # Add the top 5 guilds to the embed @@ -42,4 +43,4 @@ class UserCount(commands.Cog): async def setup(bot): - await bot.add_cog(UserCount(bot)) + await bot.add_cog(Info(bot)) |