From 5f2a44ebb8fa46b39cb54d8d925cd35e95323787 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 3 Jun 2023 17:17:18 +0200 Subject: [PATCH] Reverting recruitment cog --- recruitmentCog/recruitment.py | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/recruitmentCog/recruitment.py b/recruitmentCog/recruitment.py index 96beaca..b2eae2f 100644 --- a/recruitmentCog/recruitment.py +++ b/recruitmentCog/recruitment.py @@ -3,7 +3,6 @@ import datetime import re from typing import List from datetime import timedelta -import configparser import discord from redbot.core import Config, checks, commands @@ -25,18 +24,9 @@ class Recruitment(commands.Cog): def __init__(self, bot: Red): self.bot = bot self.message: str = '' - config = configparser.ConfigParser() - config.read('config.ini') - - identifier_id = int(config['DEFAULT']['identifier_id']) - self.config = Config.get_conf(self, identifier=identifier_id) - - self.guild_id = int(config['DEFAULT']['guild_id']) - self.trial_role_id = int(config['DEFAULT']['trial_role_id']) - - default_guild = {"guild_id": self.guild_id, "application_channel_id": None} + self.config = Config.get_conf(self, identifier=101101101101001110101) # Replace with your own unique identifier + default_guild = {"guild_id": 274657393936302080, "application_channel_id": None} self.config.register_guild(**default_guild) - self.antispam = {} async def cog_check(self, ctx: commands.Context): @@ -173,7 +163,7 @@ class Recruitment(commands.Cog): return # Assign the Trial role to the author - role = guild.get_role(self.trial_role_id) + role = guild.get_role(531181363420987423) try: await member.add_roles(role) except discord.Forbidden: @@ -233,4 +223,4 @@ class Recruitment(commands.Cog): async def get_answers(self, author: discord.Member) -> discord.Message: """Wait for the user to send a message.""" - return await self.bot.wait_for("message", check=lambda m: m.author == author and isinstance(m.channel, discord.DMChannel)) + return await self.bot.wait_for("message", check=lambda m: m.author == author and isinstance(m.channel, discord.DMChannel)) \ No newline at end of file