basic: Add hackercount

This commit is contained in:
Ave Ozkal 2019-11-11 14:29:30 +03:00
parent a0fd90fabd
commit 11d264cbd8
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

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