Remove guild join stuff again.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user