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