Added temporary config handling.
This commit is contained in:
@@ -18,6 +18,8 @@ class GuildListener(commands.Cog, name="Guild Listener"):
|
||||
async def on_guild_join(self, guild: nextcord.Guild):
|
||||
"""Listener for Guild Join. Creates skeleton for new guild joined and saves it."""
|
||||
highscores_data.add_guild(guild.id)
|
||||
# This add config will be removed eventually. Config adding will have to be controlled by commands.
|
||||
highscores_data.add_configuration(guild.id, "runescape")
|
||||
highscores_data.save_guild_data(highscores_data.get_guild(guild.id))
|
||||
|
||||
welcome_message: str = "Hello, I keep track of Highscores for you!"
|
||||
|
||||
Reference in New Issue
Block a user