aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2025-03-26 18:51:26 -0500
committerParker <contact@pkrm.dev>2025-03-26 18:51:26 -0500
commit4a64f9b0b2e88ac2852dc36cf97daea417780a4b (patch)
tree29ce13fa1fc9041d55cc9aeb26b81751065d50c7
parent5c5a00483f3be889231f84382b81a94cf8c0ca78 (diff)
Warn when features are skipped
-rw-r--r--code/bot.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/code/bot.py b/code/bot.py
index c224797..c6a0f0c 100644
--- a/code/bot.py
+++ b/code/bot.py
@@ -24,11 +24,12 @@ class MyBot(commands.Bot):
refresh_media_api_key.start()
login_genius.start()
config.LOG.info("Loading cogs...")
- config.LOG.info(
- "YouTube support is enabled, make sure to set a poToken"
- if config.YOUTUBE_SUPPORT
- else "YouTube support is disabled"
- )
+ if config.YOUTUBE_SUPPORT:
+ config.LOG.info(
+ "YouTube support is enabled, make sure to set a poToken"
+ )
+ else:
+ config.LOG.warn("YouTube support is disabled")
for ext in os.listdir("./code/cogs"):
if ext.endswith(".py"):
# Load the OPTIONAL feedback cog
@@ -36,27 +37,27 @@ class MyBot(commands.Bot):
ext[:-3] == "feedback"
and config.FEEDBACK_CHANNEL_ID == None
):
- config.LOG.info(
+ config.LOG.warn(
"Skipped loading feedback cog - channel ID not"
" provided"
)
continue
# Load the OPTIONAL bug cog
if ext[:-3] == "bug" and config.BUG_CHANNEL_ID == None:
- config.LOG.info(
+ config.LOG.warn(
"Skipped loading bug cog - channel ID not provided"
)
continue
# Load the OPTIONAL lyrics cog
if ext[:-3] == "lyrics" and config.GENIUS_CLIENT_ID == None:
- config.LOG.info(
+ config.LOG.warn(
"Skipped loading lyrics cog - Genius API credentials"
" not provided"
)
continue
# Load the OPTIONAL autoplay cog
if ext[:-3] == "autoplay" and config.AI_CLIENT == None:
- config.LOG.info(
+ config.LOG.warn(
"Skipped loading autoplay cog - AI API credentials"
" not provided"
)