feat(aurora): add per-type configuration options and a menu to configure them
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 29s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 42s

none of the options do anything yet, this is just creating the configuration keys and the menu to modify them
This commit is contained in:
Seaswimmer 2024-08-12 17:39:13 -04:00
parent 8aaa918b6e
commit 9c345ed96b
Signed by: cswimr
GPG key ID: 3813315477F26F82
5 changed files with 124 additions and 4 deletions

View file

@ -1,12 +1,12 @@
from abc import abstractmethod
from typing import Any, List, Tuple
from typing import Any, Dict, Tuple
from class_registry import AutoRegister, ClassRegistry
from discord import Interaction, Member, User
from discord.abc import Messageable
from redbot.core import commands
type_registry: List['Type'] = ClassRegistry(attr_name='key', unique=True)
type_registry: Dict['str', 'Type'] = ClassRegistry(attr_name='key', unique=True)
class Type(metaclass=AutoRegister(type_registry)):
"""This is a base class for moderation types.