Renamed utils folder because import shenanigans with module with same name.
This commit is contained in:
@@ -5,8 +5,8 @@ Bot command to post the highscores
|
||||
from nextcord.ext import commands
|
||||
from highscores import highscores_config # pylint: disable=import-error
|
||||
from highscores import highscores_data # pylint: disable=import-error
|
||||
from utils.data_storage import save_highscores_data # pylint: disable=import-error
|
||||
from utils.utils import send_highscore_message # pylint: disable=import-error
|
||||
from utilities.data_storage import save_highscores_data # pylint: disable=import-error
|
||||
from utilities.utils import send_highscore_message # pylint: disable=import-error
|
||||
|
||||
|
||||
class PostHighscores(commands.Cog, name="Post Highscores"):
|
||||
|
||||
@@ -4,7 +4,7 @@ Bot command to register the highscores channel
|
||||
|
||||
from nextcord.ext import commands
|
||||
from highscores import highscores_data # pylint: disable=import-error
|
||||
from utils.data_storage import save_highscores_data # pylint: disable=import-error
|
||||
from utilities.data_storage import save_highscores_data # pylint: disable=import-error
|
||||
|
||||
|
||||
class RegisterHighscoreChannel(commands.Cog, name="Register HighScore Channel"):
|
||||
|
||||
@@ -4,7 +4,7 @@ Bot command to register the verification channel
|
||||
|
||||
from nextcord.ext import commands
|
||||
from highscores import highscores_data # pylint: disable=import-error
|
||||
from utils.data_storage import save_highscores_data # pylint: disable=import-error
|
||||
from utilities.data_storage import save_highscores_data # pylint: disable=import-error
|
||||
|
||||
|
||||
class RegisterVerificationChannel(commands.Cog, name="Register Verify Channel"):
|
||||
|
||||
+2
-2
@@ -9,8 +9,8 @@ import nextcord
|
||||
from nextcord.ext import commands
|
||||
|
||||
import config
|
||||
from utils.data_storage import open_highscores_config
|
||||
from utils.data_storage import open_highscores_data
|
||||
from utilities.data_storage import open_highscores_config
|
||||
from utilities.data_storage import open_highscores_data
|
||||
|
||||
logger = logging.getLogger("nextcord")
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
@@ -6,12 +6,7 @@ import nextcord
|
||||
from nextcord.ext import commands
|
||||
from highscores import highscores_config # pylint: disable=import-error
|
||||
from highscores import highscores_data # pylint: disable=import-error
|
||||
from utils.data_storage import save_highscores_data
|
||||
|
||||
|
||||
def create_verification_id(user: str, boss_name: str, category: str, score: str) -> str:
|
||||
"""Returns a verification id string for buttons."""
|
||||
return f"{user}:{boss_name}:{category}:{score}"
|
||||
from utilities.data_storage import save_highscores_data # pylint: disable=import-error
|
||||
|
||||
|
||||
def format_highscore_message(boss_name: str):
|
||||
Reference in New Issue
Block a user