mirror of
https://github.com/hencaric/SCNewsBot.git
synced 2026-08-18 15:36:03 +01:00
Removing unworking membercount command
This commit is contained in:
@@ -14,21 +14,28 @@ class RStarCitizen(commands.Cog):
|
||||
self.bot = bot
|
||||
self._last_member = None
|
||||
|
||||
@commands.Cog.listener()
|
||||
async def on_ready(self) -> None:
|
||||
for channel_id in MEMBER_COUNT_CHANNELS:
|
||||
await asyncio.sleep(3)
|
||||
self.update_member_count.start(channel_id)
|
||||
|
||||
@tasks.loop(minutes = 30)
|
||||
async def update_member_count(self, channel_id: int) -> None:
|
||||
channel = self.bot.get_channel(channel_id)
|
||||
member_count = channel.guild.member_count
|
||||
await channel.edit(name=f"Members: {member_count}")
|
||||
|
||||
@commands.command(description='Modmail Close Message')
|
||||
async def mmc(self, ctx):
|
||||
await ctx.reply("```=aclose Situation resolved, please only reply if there is something else.```")
|
||||
|
||||
# @commands.Cog.listener()
|
||||
# async def on_ready(self) -> None:
|
||||
# for channel_id in MEMBER_COUNT_CHANNELS:
|
||||
# self.update_member_count.start(channel_id)
|
||||
|
||||
# @tasks.loop(hours = 12)
|
||||
# async def update_member_count(self, channel_id: int) -> None:
|
||||
# for channel_id in MEMBER_COUNT_CHANNELS:
|
||||
# channel = self.bot.get_channel(channel_id)
|
||||
# member_count = channel.guild.member_count
|
||||
# await channel.edit(name=f"Members: {member_count}")
|
||||
|
||||
# @commands.command(description='Update Member Count Channel')
|
||||
# async def mc(self, channel_id: int):
|
||||
# for channel_id in MEMBER_COUNT_CHANNELS:
|
||||
# channel = self.bot.get_channel(channel_id)
|
||||
# member_count = channel.guild.member_count
|
||||
# await channel.edit(name=f"Members: {member_count}")
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(RStarCitizen(bot))
|
||||
Reference in New Issue
Block a user