Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5155744ec5 | ||
|
|
fedc8be778 |
@@ -5,6 +5,7 @@ Cog for creating submission process.
|
|||||||
from nextcord.ext import commands
|
from nextcord.ext import commands
|
||||||
|
|
||||||
from .submission_views import SubmissionButton
|
from .submission_views import SubmissionButton
|
||||||
|
from .verification_view import VerificationView
|
||||||
|
|
||||||
|
|
||||||
class SubmissionCog(commands.Cog, name="Submission Cog"):
|
class SubmissionCog(commands.Cog, name="Submission Cog"):
|
||||||
@@ -17,6 +18,7 @@ class SubmissionCog(commands.Cog, name="Submission Cog"):
|
|||||||
async def on_ready(self):
|
async def on_ready(self):
|
||||||
"""Called when cog is loaded"""
|
"""Called when cog is loaded"""
|
||||||
self.bot.add_view(SubmissionButton(self.bot))
|
self.bot.add_view(SubmissionButton(self.bot))
|
||||||
|
self.bot.add_view(VerificationView())
|
||||||
|
|
||||||
|
|
||||||
# This function will be called when this extension is loaded.
|
# This function will be called when this extension is loaded.
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -33,7 +33,7 @@ def open_highscores_data():
|
|||||||
for boss, categories in config["highscore_table"].items():
|
for boss, categories in config["highscore_table"].items():
|
||||||
data[boss] = {"message_id": 0}
|
data[boss] = {"message_id": 0}
|
||||||
boss_categories = {}
|
boss_categories = {}
|
||||||
for category, category_config in categories.items(): # pylint: disable=unused-variable
|
for category in categories: # pylint: disable=unused-variable
|
||||||
rank_list = []
|
rank_list = []
|
||||||
boss_categories[category] = rank_list
|
boss_categories[category] = rank_list
|
||||||
data[boss]["categories"] = boss_categories
|
data[boss]["categories"] = boss_categories
|
||||||
|
|||||||
+1
-1
@@ -75,7 +75,7 @@ async def submit_score(
|
|||||||
@param score: score to add
|
@param score: score to add
|
||||||
"""
|
"""
|
||||||
|
|
||||||
boss_category_config = highscores_config["highscore_table"][boss_name][category]
|
boss_category_config = highscores_config["categories"][category]
|
||||||
|
|
||||||
# capping to 12 characters because runescape names are 12 characters long.
|
# capping to 12 characters because runescape names are 12 characters long.
|
||||||
# Splitting on pipe. My discord has multiple names on account split by pipe.
|
# Splitting on pipe. My discord has multiple names on account split by pipe.
|
||||||
|
|||||||
Reference in New Issue
Block a user