Doing a lot of overhaul to add reminders

This commit is contained in:
Dan
2024-05-05 19:09:19 -04:00
parent ff15da0061
commit 9ce8c910c8
6 changed files with 94 additions and 48 deletions

View File

@ -2,6 +2,7 @@ import discord
from discord import app_commands
from .commands import NessaTracker
from .consent import ConsentView, check_user_consent, store_user_consent
from .reminder_tracker import reminder_worker
from dotenv import load_dotenv
import os
@ -31,6 +32,8 @@ class Nessa(discord.Client):
print(f"Logged on as {self.user}!")
self.tree.copy_global_to(guild=discord.Object(id=GUILD_ID))
await self.tree.sync(guild=discord.Object(id=GUILD_ID))
print("Starting reminder worker...")
await self.loop.create_task(reminder_worker())
async def on_interaction(self, interaction: discord.Interaction):
if interaction.type == discord.InteractionType.application_command: