From 11d264cbd8199190a8576aed1613bb8fbe23f143 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Mon, 11 Nov 2019 14:29:30 +0300 Subject: [PATCH] basic: Add hackercount --- cogs/basic.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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):