aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2025-03-25 23:07:56 -0500
committerParker <contact@pkrm.dev>2025-03-25 23:07:56 -0500
commit106692551b83e0cadea30be7664e17363e1061dd (patch)
tree317dd029e38e43389215f215127a9ffdfdf41406
parente578077df3f9af70befa6fa69d4dfcedb5986ce1 (diff)
Fix
-rw-r--r--code/cogs/owner/toggle.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/code/cogs/owner/toggle.py b/code/cogs/owner/toggle.py
index 2ab6944..7b93894 100644
--- a/code/cogs/owner/toggle.py
+++ b/code/cogs/owner/toggle.py
@@ -1,7 +1,7 @@
from discord.ext import commands
from typing import Literal
-import utils.config as config
+from utils.config import YOUTUBE_SUPPORT, YOUTUBE_BROKEN
class Toggle(commands.Cog):
@@ -16,18 +16,18 @@ class Toggle(commands.Cog):
):
"""Toggle YouTube links"""
if action == "disable":
- config.YOUTUBE_SUPPORT = False
- config.YOUTUBE_BROKEN = False
+ YOUTUBE_SUPPORT = False
+ YOUTUBE_BROKEN = False
return await ctx.send("YouTube has been disabled.")
if action == "enable":
- config.YOUTUBE_SUPPORT = True
- config.YOUTUBE_BROKEN = False
+ YOUTUBE_SUPPORT = True
+ YOUTUBE_BROKEN = False
return await ctx.send("YouTube has been enabled.")
if action == "broken":
- config.YOUTUBE_SUPPORT = False
- config.YOUTUBE_BROKEN = True
+ YOUTUBE_SUPPORT = False
+ YOUTUBE_BROKEN = True
return await ctx.send("YouTube has been marked as broken.")