diff --git a/cogs/basic.py b/cogs/basic.py index f902302..e00cae6 100644 --- a/cogs/basic.py +++ b/cogs/basic.py @@ -35,6 +35,14 @@ class Basic(Cog): await ctx.send(f"{ctx.guild.name} has " f"{len(community.members)} community members!") + @commands.guild_only() + @commands.command() + async def hackercount(self, ctx): + """Prints the hacker member count of the server.""" + h4x0r = ctx.guild.get_role(config.named_roles["hacker"]) + await ctx.send(f"{ctx.guild.name} has " + f"{len(h4x0r.members)} people with hacker role!") + @commands.guild_only() @commands.command() async def membercount(self, ctx):