lunarflu HF staff commited on
Commit
2ec35fc
·
1 Parent(s): 6fdc6ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -96,8 +96,7 @@ async def count(ctx):
96
  for channel in ctx.guild.text_channels:
97
  try:
98
  async for message in channel.history(limit=None):
99
- if not message.author.bot:
100
- message_counts[message.author] = message_counts.get(message.author, 0) + 1
101
  except discord.Forbidden:
102
  # Handle the Forbidden error
103
  await ctx.send(f"Missing access to read messages in {channel.name}")
 
96
  for channel in ctx.guild.text_channels:
97
  try:
98
  async for message in channel.history(limit=None):
99
+ message_counts[message.author] = message_counts.get(message.author, 0) + 1
 
100
  except discord.Forbidden:
101
  # Handle the Forbidden error
102
  await ctx.send(f"Missing access to read messages in {channel.name}")