Esempio n. 1
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("client_id")
     helper.copy("client_secret")
     helper.base["webhook_key"] = ("".join(random.choices(secret_charset, k=64))
                                   if helper.source.get("webhook_key", "generate") == "generate"
                                   else helper.source["webhook_key"])
     helper.copy("global_webhook_secret")
     helper.copy("command_options.prefix")
     helper.copy("message_options.msgtype")
     helper.copy("message_options.aggregation_timeout")
     helper.copy("templates")
     helper.copy("macros")
     helper.copy_dict("messages")
Esempio n. 2
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("control_room")
     helper.copy("new_user_cooldown")
     helper.copy("new_message_cooldown")
     helper.copy("template_prepend")
     helper.copy_dict("templates")