|
|
|
@ -7,7 +7,6 @@ from redbot.core.bot import Red
|
|
|
|
|
Cog: Any = getattr(commands, "Cog", object)
|
|
|
|
|
listener = getattr(commands.Cog, "listener", None) # Trusty + Sinbad
|
|
|
|
|
if listener is None:
|
|
|
|
|
|
|
|
|
|
def listener(name=None):
|
|
|
|
|
return lambda x: x
|
|
|
|
|
|
|
|
|
@ -160,8 +159,10 @@ class InfoChannel(Cog):
|
|
|
|
|
onlinecount = guild_data["online_count"]
|
|
|
|
|
|
|
|
|
|
# Gets count of bots
|
|
|
|
|
bots = lambda x: x.bot
|
|
|
|
|
num = len([m for m in guild.members if bots(m)])
|
|
|
|
|
# bots = lambda x: x.bot
|
|
|
|
|
# def bots(x): return x.bot
|
|
|
|
|
|
|
|
|
|
num = len([m for m in guild.members if m.bot])
|
|
|
|
|
bot_msg = f"Bots: {num}"
|
|
|
|
|
|
|
|
|
|
# Gets count of online users
|
|
|
|
@ -188,7 +189,6 @@ class InfoChannel(Cog):
|
|
|
|
|
|
|
|
|
|
if guild_data["member_count"]:
|
|
|
|
|
name = "{} ".format(human_msg)
|
|
|
|
|
|
|
|
|
|
await channel.edit(reason="InfoChannel update", name=name)
|
|
|
|
|
|
|
|
|
|
if botcount:
|
|
|
|
|