aboutsummaryrefslogtreecommitdiff
path: root/code/cogs/owner/toggle.py
diff options
context:
space:
mode:
Diffstat (limited to 'code/cogs/owner/toggle.py')
-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.")