From 831fad53f16476068bb9f842a1d469bb674c4b1c Mon Sep 17 00:00:00 2001 From: Parker Date: Wed, 3 Apr 2024 15:42:03 -0500 Subject: [PATCH] Move `user_count.py` to `info.py` in `owner` folder --- code/cogs/{user_count.py => owner/info.py} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename code/cogs/{user_count.py => owner/info.py} (86%) diff --git a/code/cogs/user_count.py b/code/cogs/owner/info.py similarity index 86% rename from code/cogs/user_count.py rename to 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))