Merge pull request #29 from leo60228/master

Add .communitycount
This commit is contained in:
Ave 2019-03-03 17:54:28 +00:00 committed by GitHub
commit fcbe3371ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,14 @@ class Basic(Cog):
"""Says hello. Duh."""
await ctx.send(f"Hello {ctx.author.mention}!")
@commands.guild_only()
@commands.command()
async def communitycount(self, ctx):
"""Prints the community member count of the server."""
community = ctx.guild.get_role(config.named_roles["community"])
await ctx.send(f"{ctx.guild.name} has "
f"{len(community.members)} community members!")
@commands.guild_only()
@commands.command()
async def membercount(self, ctx):