From a0a7e379210d927b70b76938f2a6950db6e77086 Mon Sep 17 00:00:00 2001 From: alwayscompiling Date: Fri, 9 Dec 2022 16:43:56 -0500 Subject: [PATCH] Remove guild join stuff again. --- cogs/guild_listener/__init__.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/cogs/guild_listener/__init__.py b/cogs/guild_listener/__init__.py index 965b17f..c428826 100644 --- a/cogs/guild_listener/__init__.py +++ b/cogs/guild_listener/__init__.py @@ -19,22 +19,13 @@ class GuildListener(commands.Cog, name="Guild Listener"): @commands.Cog.listener() async def on_guild_join(self, guild: nextcord.Guild): - """Listener for Guild Join. Creates skeleton for new guild joined and saves it.""" + """Listener for Guild Join. Adds guild to database.""" new_guild = Guild(GuildId=guild.id) with Session(engine) as session: session.add(new_guild) session.commit() - # This add config will be removed eventually. Config adding will have to be controlled by commands. - add_preset_configuration(guild.id, "runescape") - - welcome_message: str = "Hello, I keep track of Highscores for you!" - welcome_message += " Currently only supporting RuneScape boss highscores," - welcome_message += " but will be more dynamic support in future." - welcome_message += ' For assistance on getting started, use "?register help".' - - await guild.system_channel.send(content=welcome_message) # This function will be called when this extension is loaded.