aboutsummaryrefslogtreecommitdiff
path: root/code/cogs
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2025-01-21 21:06:33 -0600
committerParker <contact@pkrm.dev>2025-01-21 21:06:33 -0600
commit13ee0683582498cedc66d2e3a14cb32510392135 (patch)
tree045c5d517bcdf7cd0a015e280f0490c8f4b39c49 /code/cogs
parentb0ea7ab93564f1b2f004f7ea74783508f12f4ff6 (diff)
Fix database creation
Diffstat (limited to 'code/cogs')
-rw-r--r--code/cogs/newaccount.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/code/cogs/newaccount.py b/code/cogs/newaccount.py
index f3f5ac8..fd3f698 100644
--- a/code/cogs/newaccount.py
+++ b/code/cogs/newaccount.py
@@ -1,10 +1,9 @@
import discord
from discord import app_commands
-from discord.ext import commands, tasks
+from discord.ext import commands
from utils.database import Session
from utils.jellyfin_create import create_jellyfin_account
-from utils.jellyfin_delete import delete_accounts
from utils.models import JellyfinAccounts
from utils.config import (
JELLYFIN_PUBLIC_URL,
@@ -17,9 +16,6 @@ class NewAccount(commands.Cog):
def __init__(self, bot):
self.bot = bot
- def cog_load(self):
- self.delete_accounts_loop.start()
-
@app_commands.command()
@app_commands.check(lambda inter: JELLYFIN_ENABLED)
async def newaccount(self, interaction: discord.Interaction) -> None:
@@ -91,10 +87,6 @@ class NewAccount(commands.Cog):
embed=embed, ephemeral=True
)
- @tasks.loop(minutes=1)
- async def delete_accounts_loop(self):
- delete_accounts()
-
async def setup(bot):
await bot.add_cog(NewAccount(bot))