SeaCogs/aurora/utilities/config.py

40 lines
1.1 KiB
Python
Raw Normal View History

2023-12-17 02:36:18 -05:00
from redbot.core import Config
config: Config = Config.get_conf(None, identifier=481923957134912, cog_name="Aurora")
2024-02-02 11:22:08 -05:00
2023-12-18 19:00:16 -05:00
def register_config(config_obj: Config):
config_obj.register_guild(
2024-02-02 11:22:08 -05:00
show_moderator=True,
use_discord_permissions=True,
respect_hierarchy=True,
2024-02-02 11:22:08 -05:00
ignore_modlog=True,
ignore_other_bots=True,
dm_users=True,
log_channel=" ",
immune_roles=[],
history_ephemeral=False,
history_inline=False,
history_pagesize=5,
history_inline_pagesize=6,
auto_evidenceformat=False,
addrole_whitelist=[],
)
2023-12-18 19:00:16 -05:00
config_obj.register_user(
2024-02-02 11:22:08 -05:00
history_ephemeral=None,
history_inline=None,
history_pagesize=None,
history_inline_pagesize=None,
auto_evidenceformat=None,
)
moderation_type = {
"show_in_history": bool,
"show_moderator": bool,
"use_discord_permissions": bool,
"dm_users": bool,
}
2024-08-12 17:42:46 -04:00
config_obj.init_custom("types", 2)
config_obj.register_custom("types", **moderation_type)