forked from blizzthewolf/SeaCogs
misc(moderation): moved config registration logic from main file to config.py
This commit is contained in:
parent
c7f7d29be5
commit
25cbc33b6d
1 changed files with 27 additions and 1 deletions
|
@ -1,3 +1,29 @@
|
||||||
from redbot.core import Config
|
from redbot.core import Config
|
||||||
|
|
||||||
config = Config.get_conf(None, identifier=481923957134912, cog_name="Moderation")
|
config: Config = Config.get_conf(None, identifier=481923957134912, cog_name="Moderation")
|
||||||
|
|
||||||
|
def register_config(config: Config):
|
||||||
|
config.register_global(
|
||||||
|
mysql_address= " ",
|
||||||
|
mysql_database = " ",
|
||||||
|
mysql_username = " ",
|
||||||
|
mysql_password = " "
|
||||||
|
)
|
||||||
|
config.register_guild(
|
||||||
|
use_discord_permissions = 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,
|
||||||
|
blacklist_roles = []
|
||||||
|
)
|
||||||
|
config.register_user(
|
||||||
|
history_ephemeral = None,
|
||||||
|
history_inline = None,
|
||||||
|
history_pagesize = None,
|
||||||
|
history_inline_pagesize = None
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue