Exemple #1
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("source.type")
     helper.copy("source.config")
     helper.copy("min_monologue_size")
     helper.copy("max_monologue_delay")
     helper.copy("disrupt_cooldown")
     helper.copy("user_ratelimit.rate")
     helper.copy("user_ratelimit.per")
     helper.copy("user_ratelimit.message")
     helper.copy("room_ratelimit.rate")
     helper.copy("room_ratelimit.per")
     helper.copy("room_ratelimit.message")
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("rooms")
     helper.copy("server_name")
Exemple #3
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("inline")
     helper.copy("poll_interval")
     helper.copy("spam_sleep")
     helper.copy("allow_reindex")
     helper.copy("max_search_results")
     helper.copy("base_command")
Exemple #4
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("provider.id")
     helper.copy("provider.args")
     helper.copy("auto_translate")
     helper.copy("response_reply")
Exemple #5
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("base_command")
Exemple #6
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("prefix")
     helper.copy("userbot")
     helper.copy("whitelist")
     helper.copy("output.interval")
     helper.copy("output.template_args")
     helper.copy("output.plaintext")
     helper.copy("output.html")
Exemple #7
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("federation_tester")
Exemple #8
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy('webhook-secret')
     helper.copy('send_as_notice')
     helper.copy('time_format')
Exemple #9
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("twilio_account_sid")
     helper.copy("twilio_auth_token")
     helper.copy("twilio_source_number")
     helper.copy("admins")
Exemple #10
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("democracy")
     helper.copy("opt_out")
     helper.copy("show_content")
     helper.copy("store_content")
     helper.copy("filter")
     helper.copy("errors.filtered_users")
     helper.copy("errors.vote_on_vote")
     helper.copy("errors.upvote_self")
     helper.copy("errors.already_voted")
Exemple #11
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("rules")
     helper.copy("templates")
     helper.copy("default_flags")
     helper.copy("antispam.user.max")
     helper.copy("antispam.user.delay")
     helper.copy("antispam.room.max")
     helper.copy("antispam.room.delay")
Exemple #12
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     if self.get("quality", None) in gif_versions.keys():
         helper.copy("quality")
     else:
         self["quality"] = "high"
Exemple #13
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy('flag')
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("rapidapiKey")
     helper.copy("coinapiioKey")
     helper.copy("stocktrigger")
     helper.copy("cryptotrigger")
Exemple #15
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("whitelist")
     helper.copy("command_prefix")
Exemple #16
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("mqttserver")
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("appid")
Exemple #18
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("giphy_api_key")
     helper.copy("tenor_api_key")
     helper.copy("provider")
     helper.copy("source")
     helper.copy("response_type")
     helper.copy("num_results")
     helper.copy("rating")
Exemple #19
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")
Exemple #20
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("command")
     helper.copy("url")
     helper.copy("reuploaded_cats")
Exemple #21
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("use_tex")
     helper.copy("font_size")
     helper.copy("thumbnail_dpi")
     helper.copy("mode")
     helper.copy("command")
Exemple #22
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")
Exemple #23
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("command")
     helper.copy("admins")
     helper.copy("require_lowercase")
     helper.copy("rooms")
Exemple #24
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("api_key")
     helper.copy("source")
Exemple #25
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("update_interval")
     helper.copy("spam_sleep")
     helper.copy("command_prefix")
     helper.copy("admins")
Exemple #26
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("default_timezone")
     helper.copy("base_command")
Exemple #27
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("admin_secret")
     helper.copy("reg_url")
     helper.copy("admins")
     helper.copy("expiration")
Exemple #28
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("show_statement")
     helper.copy("show_rolls")
     helper.copy("show_rolls_limit")
     helper.copy("gauss_limit")
     helper.copy("result_max_length")
     helper.copy("round_decimals")
Exemple #29
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("message")
Exemple #30
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("path")
     helper.copy("secret")
     helper.copy("base_command")
     helper.copy("send_as_notice")
     helper.copy("time_format")