Added temporary config handling.

This commit is contained in:
alwayscompiling
2022-08-04 11:06:18 -04:00
parent 4ee0593619
commit a6f98d11ab
2 changed files with 28 additions and 1 deletions
+2
View File
@@ -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!"