from datetime import datetime from discord.ext import commands from discord import Embed from discord.ext.commands import BadArgument from discord.ext import tasks from administrator.check import is_enabled from administrator.logger import logger from administrator import db from administrator.utils import time_pars, seconds_to_time_string extension_name = "reminders" logger = logger.getChild(extension_name) class Reminders(commands.Cog, name="Reminder"): def __init__(self, bot: commands.Bot): self.bot = bot def description(self): return "Create and manage reminders" @commands.group("reminder", pass_context=True) @is_enabled() async def reminder(self, ctx: commands.Context): if ctx.invoked_subcommand is None: await ctx.invoke(self.reminder_help) @reminder.group("help", pass_context=True) async def reminder_help(self, ctx: commands.Context): embed = Embed(title="Reminder help") embed.add_field(name="reminder add