mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fix cap command
This commit is contained in:
parent
93ca4386fd
commit
c1c478d16c
1 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ class StarBoardCog(commands.Cog):
|
||||||
async def get_starboard_info(self, ctx: discord.ApplicationContext, message: discord.Message):
|
async def get_starboard_info(self, ctx: discord.ApplicationContext, message: discord.Message):
|
||||||
return await ctx.respond(embed=await self.generate_starboard_embed(message))
|
return await ctx.respond(embed=await self.generate_starboard_embed(message))
|
||||||
|
|
||||||
@commands.command(name="threshold")
|
@commands.slash_command(name="threshold")
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
async def get_threshold(self, ctx: commands.Context):
|
async def get_threshold(self, ctx: commands.Context):
|
||||||
"""Shows you the current starboard threshold"""
|
"""Shows you the current starboard threshold"""
|
||||||
|
@ -133,7 +133,7 @@ class StarBoardCog(commands.Cog):
|
||||||
cap = len([x for x in ctx.channel.members if not x.bot]) * 0.1
|
cap = len([x for x in ctx.channel.members if not x.bot]) * 0.1
|
||||||
else:
|
else:
|
||||||
cap = ctx.channel.member_count * 0.1
|
cap = ctx.channel.member_count * 0.1
|
||||||
return await ctx.reply(f"Messages currently need {c:.2f} stars in this channel to be posted to the starboard.")
|
return await ctx.reply(f"Messages currently need {cap:.2f} stars in this channel to be posted to the starboard.")
|
||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
|
|
Loading…
Reference in a new issue