diff options
| author | 2019-04-09 11:41:06 +0100 | |
|---|---|---|
| committer | 2019-04-09 11:41:06 +0100 | |
| commit | 040d05334a08df1eb1418a4220d16fe20ae3f2b6 (patch) | |
| tree | 69a8111e913687e278803e336bf316cc1d7d562b /bot/seasons/evergreen/lemonstats.py | |
| parent | Just changed the conversation starters directory. (diff) | |
| parent | Merge pull request #184 from RohanRadia/master (diff) | |
Merge pull request #1 from python-discord/master
Update Merge
Diffstat (limited to 'bot/seasons/evergreen/lemonstats.py')
| -rw-r--r-- | bot/seasons/evergreen/lemonstats.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/bot/seasons/evergreen/lemonstats.py b/bot/seasons/evergreen/lemonstats.py deleted file mode 100644 index b23c65a4..00000000 --- a/bot/seasons/evergreen/lemonstats.py +++ /dev/null @@ -1,31 +0,0 @@ -import logging - -from discord.ext import commands - - -log = logging.getLogger(__name__) - - -class LemonStats(commands.Cog): - """A cog for generating useful lemon-related statistics.""" - - def __init__(self, bot): - self.bot = bot - - @commands.command() - async def lemoncount(self, ctx: commands.Context): - """Count the number of users on the server with `'lemon'` in their nickname.""" - - async with ctx.typing(): - lemoncount = sum( - ['lemon' in server_member.display_name.lower() for server_member in self.bot.guilds[0].members] - ) - - await ctx.send(f"There are currently {lemoncount} lemons on the server.") - - -def setup(bot): - """Load LemonStats Cog.""" - - bot.add_cog(LemonStats(bot)) - log.info("LemonStats cog loaded") |