Changing file name and function name for better scope management.

This commit is contained in:
alwayscompiling
2022-06-27 17:48:50 -04:00
parent 96c6bd7935
commit 46dcb81a9a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
@@ -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