diff --git a/cogs/post_highscores/__init__.py b/cogs/post_highscores/__init__.py index 25cf120..6852297 100644 --- a/cogs/post_highscores/__init__.py +++ b/cogs/post_highscores/__init__.py @@ -5,7 +5,7 @@ Bot command to post the highscores from nextcord.ext import commands import highscores # pylint: disable=import-error from utils import data_storage # pylint: disable=import-error -from utils import message_formatter # pylint: disable=import-error +from utils import highscore_message # pylint: disable=import-error class PostHighscores(commands.Cog, name="Post Highscores"): @@ -29,7 +29,7 @@ class PostHighscores(commands.Cog, name="Post Highscores"): f"Printing out highscores information in channel {channel_id}") channel = self.bot.get_channel(channel_id) for boss in highscores.highscores_config["bosses"]: - highscore_string = message_formatter.format_boss_highscore( + highscore_string = highscore_message.format_highscore_message( boss) message = await channel.send(highscore_string) message_id = message.id diff --git a/utils/message_formatter.py b/utils/highscore_message.py similarity index 92% rename from utils/message_formatter.py rename to utils/highscore_message.py index 0833d35..4ca6030 100644 --- a/utils/message_formatter.py +++ b/utils/highscore_message.py @@ -1,11 +1,11 @@ """ -Contains various function to format the highscore messages +Contains various functions for sending/editing the highscore messages. """ import highscores # pylint: disable=import-error -def format_boss_highscore(boss): +def format_highscore_message(boss): """ returns a formattedd string for a boss's highscore @param the dictionary object for the boss