Changed config table name.
This commit is contained in:
@@ -38,7 +38,7 @@ class PostHighscores(commands.Cog, name="Post Highscores"):
|
||||
assert channel is not None, await ctx.send(error_response)
|
||||
|
||||
for boss, categories in highscores_config[ # pylint: disable=unused-variable
|
||||
"highscore_table"
|
||||
"tables"
|
||||
].items():
|
||||
message: nextcord.Message = await send_highscore_message(channel, boss)
|
||||
await message.edit(view=SubmissionCreateButton(self.bot))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"highscore_table": {
|
||||
"tables": {
|
||||
"The Ambassador": [
|
||||
"Kill Count",
|
||||
"Kill Time",
|
||||
|
||||
@@ -16,7 +16,7 @@ def create_highscore_skeleton() -> dict:
|
||||
# create the dict
|
||||
skeleton = {"highscore_channel_id": -1, "verification_channel_id": -1, "username_length": 12}
|
||||
config: dict = open_highscores_config()
|
||||
for boss, categories in config["highscore_table"].items():
|
||||
for boss, categories in config["tables"].items():
|
||||
skeleton["tables"][boss] = {"message_id": 0}
|
||||
boss_categories = {}
|
||||
for category in categories:
|
||||
|
||||
Reference in New Issue
Block a user