2024-01-15 06:49:20 -05:00
|
|
|
from abc import ABC, abstractmethod
|
2024-01-13 10:44:08 -05:00
|
|
|
|
|
|
|
from redbot.core import commands
|
|
|
|
from redbot.core.bot import Red
|
|
|
|
|
2024-01-15 09:08:29 -05:00
|
|
|
from .utilities.config import config
|
2024-01-13 10:44:08 -05:00
|
|
|
|
|
|
|
|
|
|
|
class CompositeMetaClass(type(commands.Cog), type(ABC)):
|
|
|
|
"""
|
|
|
|
This allows the metaclass used for proper type detection to
|
|
|
|
coexist with discord.py's metaclass
|
|
|
|
"""
|
|
|
|
|
|
|
|
class Mixin(ABC):
|
|
|
|
"""
|
|
|
|
Base class for well behaved type hint detection with composite class.
|
|
|
|
|
|
|
|
Basically, to keep developers sane when not all attributes are defined in each mixin.
|
|
|
|
"""
|
|
|
|
|
|
|
|
def __init__(self, *_args):
|
|
|
|
super().__init__()
|
2024-01-15 09:08:29 -05:00
|
|
|
self.config: config
|
2024-01-13 10:44:08 -05:00
|
|
|
self.bot: Red
|
2024-01-15 06:49:20 -05:00
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
# configuration/commands.py #
|
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
async def aurora(self, ctx: commands.Context) -> None:
|
|
|
|
raise NotImplementedError()
|
|
|
|
|
|
|
|
@abstractmethod
|
2024-01-15 09:11:08 -05:00
|
|
|
async def aurora_settings(self, ctx: commands.Context) -> None:
|
|
|
|
raise NotImplementedError()
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
async def aurora_settings_core(self, ctx: commands.Context) -> None:
|
|
|
|
raise NotImplementedError()
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
async def aurora_settings_addrole(self, ctx: commands.Context) -> None:
|
|
|
|
raise NotImplementedError()
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
async def aurora_settings_immunity(self, ctx: commands.Context) -> None:
|
2024-01-15 06:49:20 -05:00
|
|
|
raise NotImplementedError()
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
async def aurora_import(self, ctx: commands.Context) -> None:
|
|
|
|
raise NotImplementedError()
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
async def aurora_import_aurora(self, ctx: commands.Context) -> None:
|
|
|
|
raise NotImplementedError()
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
async def aurora_import_galacticbot(self, ctx: commands.Context) -> None:
|
|
|
|
raise NotImplementedError()
|