mirror of
https://github.com/hencaric/SCNewsBot.git
synced 2026-08-18 23:46:03 +01:00
Removed rstarcitizen functionality to repair code
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
import discord
|
||||
import asyncio
|
||||
from discord.ext import commands, tasks
|
||||
from utils import Config
|
||||
from typing import Union
|
||||
|
||||
class RStarCitizen(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
self._last_member = None
|
||||
|
||||
@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.```")
|
||||
|
||||
@tasks.loop(hours=1)
|
||||
async def update_member_count(self):
|
||||
guild = self.bot.get_guild(82210263440306176) # Replace YOUR_GUILD_ID with your actual guild ID
|
||||
channel = guild.get_channel(1223778123472965755) # Replace YOUR_CHANNEL_ID with your actual channel ID
|
||||
|
||||
member_count = len(guild.members)
|
||||
await channel.edit(name=f'Members: {member_count}')
|
||||
|
||||
@commands.Cog.listener()
|
||||
async def on_ready(self):
|
||||
print('MemberCount cog is ready.')
|
||||
self.update_member_count.start()
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(RStarCitizen(bot))
|
||||
@@ -47,12 +47,18 @@ Role - `1113152142300156004`
|
||||
__**Patch Notes:**__
|
||||
Channel - `585952222853201941`
|
||||
Role - `620025894559547412`
|
||||
__**Evocati Patch Notes:**__
|
||||
Channel - `585952222853201941`
|
||||
Role - `1305975151858552862`
|
||||
__**SC News:**__
|
||||
Channel - `569635458183856149`
|
||||
Role - `620025828079697920`
|
||||
__**General News:**__
|
||||
Channel - `803341100618219540`
|
||||
Role - `803343410794594385`
|
||||
__**MOTD:**__
|
||||
Channel - `803341100618219540`
|
||||
Role - `1310721100392435797`
|
||||
|
||||
__**Ping Previews:**__
|
||||
[Check here](https://discord.com/channels/82210263440306176/611922107345141760/1228019382454849587)
|
||||
|
||||
Reference in New Issue
Block a user