mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fix incorrect calculation
This commit is contained in:
parent
a9a27b08ad
commit
97dcc25535
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class StarBoardCog(commands.Cog):
|
||||||
entry, created = database
|
entry, created = database
|
||||||
if created:
|
if created:
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
cap = message.channel if "thread" in message.channel.type.name else message.guild
|
cap = message.channel
|
||||||
if self.bot.intents.members and hasattr(cap, "members"):
|
if self.bot.intents.members and hasattr(cap, "members"):
|
||||||
cap = len([x for x in cap.members if not x.bot]) * 0.1
|
cap = len([x for x in cap.members if not x.bot]) * 0.1
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue