From 815cfcb0315bb88a099c566d7c5faa6aecc11c71 Mon Sep 17 00:00:00 2001 From: bobloy Date: Fri, 2 Oct 2020 12:01:17 -0400 Subject: [PATCH] Add member role WIP --- timerole/timerole.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/timerole/timerole.py b/timerole/timerole.py index 7484267..45d147a 100644 --- a/timerole/timerole.py +++ b/timerole/timerole.py @@ -27,10 +27,15 @@ class Timerole(Cog): self.bot = bot self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True) default_global = {} - default_guild = {"announce": None, "roles": {}} + default_guild = {"announce": None} + default_memberrole = {"had_role": False, "check_again_time": None} self.config.register_global(**default_global) self.config.register_guild(**default_guild) + + self.config.init_custom("MemberRole", 2) + self.config.register_custom("MemberRole", **default_memberrole) + self.updating = asyncio.create_task(self.check_hour()) async def red_delete_data_for_user(self, **kwargs):