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