Example #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")
Example #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")
Example #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")
Example #5
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("base_command")
Example #6
0
File: bot.py Project: maubot/exec
 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")
Example #7
0
File: rsvc.py Project: maubot/rsvc
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("federation_tester")
Example #8
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy('webhook-secret')
     helper.copy('send_as_notice')
     helper.copy('time_format')
Example #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")
Example #10
0
File: bot.py Project: maubot/karma
 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")
Example #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")
Example #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"
Example #13
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy('flag')
Example #14
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("rapidapiKey")
     helper.copy("coinapiioKey")
     helper.copy("stocktrigger")
     helper.copy("cryptotrigger")
Example #15
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("whitelist")
     helper.copy("command_prefix")
Example #16
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("mqttserver")
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("appid")
Example #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")
Example #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")
Example #20
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("command")
     helper.copy("url")
     helper.copy("reuploaded_cats")
Example #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")
Example #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")
Example #23
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("command")
     helper.copy("admins")
     helper.copy("require_lowercase")
     helper.copy("rooms")
Example #24
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("api_key")
     helper.copy("source")
Example #25
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("update_interval")
     helper.copy("spam_sleep")
     helper.copy("command_prefix")
     helper.copy("admins")
Example #26
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("default_timezone")
     helper.copy("base_command")
Example #27
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("admin_secret")
     helper.copy("reg_url")
     helper.copy("admins")
     helper.copy("expiration")
Example #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")
Example #29
0
 def do_update(self, helper: ConfigUpdateHelper) -> None:
     helper.copy("message")
Example #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")