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))