Renamed python files to more describe their contents. Intend on having more than 1 class per file.
This commit is contained in:
@@ -5,9 +5,9 @@ Cog loader. Adds all command classes as cogs to the bot.
|
|||||||
from nextcord.ext import commands
|
from nextcord.ext import commands
|
||||||
|
|
||||||
# Command classes
|
# Command classes
|
||||||
from .delete_scores import DeleteScores
|
from .message_management import PostHighscores
|
||||||
from .post_highscores import PostHighscores
|
from .settings_management import Register
|
||||||
from .register import Register
|
from .table_management import DeleteScores
|
||||||
|
|
||||||
# This function will be called when this extension is loaded.
|
# This function will be called when this extension is loaded.
|
||||||
# It is necessary to add these functions to the bot.
|
# It is necessary to add these functions to the bot.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Bot command to post the highscores
|
Commands for managing/displaying the highscores messages.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from nextcord.ext import commands
|
from nextcord.ext import commands
|
||||||
@@ -11,7 +11,10 @@ from utilities.utils import send_highscore_message # pylint: disable=import-err
|
|||||||
|
|
||||||
|
|
||||||
class PostHighscores(commands.Cog, name="Post Highscores"):
|
class PostHighscores(commands.Cog, name="Post Highscores"):
|
||||||
"""Posts Highscores."""
|
"""
|
||||||
|
Posts Highscores messages. Either creates new messages for each table if one doesn't exist
|
||||||
|
or edits the existing message.
|
||||||
|
"""
|
||||||
|
|
||||||
def __init__(self, bot: commands.Bot) -> None:
|
def __init__(self, bot: commands.Bot) -> None:
|
||||||
"""
|
"""
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
"""
|
"""
|
||||||
Bot command for registering various channels to the bot.
|
Commands for managing the Guild's settings.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
from nextcord.ext import commands
|
from nextcord.ext import commands
|
||||||
import nextcord
|
import nextcord
|
||||||
|
|
||||||
@@ -11,7 +10,7 @@ from highscores import highscores_data # pylint: disable=import-error
|
|||||||
|
|
||||||
class Register(commands.Cog, name="Register"):
|
class Register(commands.Cog, name="Register"):
|
||||||
"""
|
"""
|
||||||
Class holds various register commands.
|
Class holds the Register group command. Registers various channels.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Bot command for deleting the guild's scores.
|
Commands for managing the tables/categories/scores for a Guild.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from nextcord.ext import commands
|
from nextcord.ext import commands
|
||||||
Reference in New Issue
Block a user