Changed design to be one class per file.

This commit is contained in:
alwayscompiling
2022-08-11 22:44:22 -04:00
parent 349fdfe18d
commit b2acafd6e7
4 changed files with 23 additions and 17 deletions
+5 -4
View File
@@ -8,15 +8,14 @@ import nextcord
from highscores import highscores_data # pylint: disable=import-error
class DeleteScores(commands.Cog, name="Delete Scores"):
class TableManagement(commands.Cog, name="Table Management"):
"""
Warning: This command only works for developers.
Deletes this guild's scores.
Class holds commands for managing the data storage of the highscores.
"""
def __init__(self):
"""
Default constructor for DeleteScores class. Does nothing.
Default constructor for TableManagement class. Does nothing.
"""
@nextcord.slash_command(
@@ -25,6 +24,8 @@ class DeleteScores(commands.Cog, name="Delete Scores"):
)
async def delete_scores(self, interaction: nextcord.Interaction):
"""
Warning: This command only works for developers.
A command which deletes all scores in all tables for this guild.
Command limits to admins to prevent devs from usings on non-test servers.
"""