From 41d7335a68e84b4378d59d34f51cf7f1aae2c2dc Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Tue, 24 Jan 2023 13:13:45 +0100 Subject: Add weechat triggers --- .weechat/trigger.conf | 131 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 .weechat/trigger.conf (limited to '.weechat') diff --git a/.weechat/trigger.conf b/.weechat/trigger.conf new file mode 100644 index 0000000..847f8c2 --- /dev/null +++ b/.weechat/trigger.conf @@ -0,0 +1,131 @@ +# +# weechat -- trigger.conf +# +# WARNING: It is NOT recommended to edit this file by hand, +# especially if WeeChat is running. +# +# Use commands like /set or /fset to change settings in WeeChat. +# +# For more info, see: https://weechat.org/doc/quickstart/ +# + +[look] +enabled = on +monitor_strip_colors = off + +[color] +flag_command = lightgreen +flag_conditions = yellow +flag_post_action = lightblue +flag_regex = lightcyan +flag_return_code = lightmagenta +regex = white +replace = cyan +trigger = green +trigger_disabled = red + +[trigger] +beep.arguments = "" +beep.command = "/print -beep" +beep.conditions = "${tg_displayed} && (${tg_highlight} || ${tg_msg_pv})" +beep.enabled = on +beep.hook = print +beep.post_action = none +beep.regex = "" +beep.return_code = ok +botcolor_libera_skbot.arguments = "weechat_print" +botcolor_libera_skbot.command = "" +botcolor_libera_skbot.conditions = "${tg_tags} =~ ,nick_skbot," +botcolor_libera_skbot.enabled = on +botcolor_libera_skbot.hook = modifier +botcolor_libera_skbot.post_action = none +botcolor_libera_skbot.regex = "/.*/${tg_prefix}\t${color:3}${tg_message_nocolor}" +botcolor_libera_skbot.return_code = ok +botcolor_rizon_internets.arguments = "weechat_print" +botcolor_rizon_internets.command = "" +botcolor_rizon_internets.conditions = "${tg_tags} =~ ,nick_internets," +botcolor_rizon_internets.enabled = on +botcolor_rizon_internets.hook = modifier +botcolor_rizon_internets.post_action = none +botcolor_rizon_internets.regex = "/.*/${tg_prefix}\t${color:3}${tg_message_nocolor}" +botcolor_rizon_internets.return_code = ok +botcolor_rizon_quotes.arguments = "weechat_print" +botcolor_rizon_quotes.command = "" +botcolor_rizon_quotes.conditions = "${tg_tags} =~ ,nick_quotes," +botcolor_rizon_quotes.enabled = on +botcolor_rizon_quotes.hook = modifier +botcolor_rizon_quotes.post_action = none +botcolor_rizon_quotes.regex = "/.*/${tg_prefix}\t${color:3}${tg_message_nocolor}" +botcolor_rizon_quotes.return_code = ok +botcolor_rizon_yt_info.arguments = "weechat_print" +botcolor_rizon_yt_info.command = "" +botcolor_rizon_yt_info.conditions = "${tg_tags} =~ ,nick_yt-info," +botcolor_rizon_yt_info.enabled = on +botcolor_rizon_yt_info.hook = modifier +botcolor_rizon_yt_info.post_action = none +botcolor_rizon_yt_info.regex = "/.*/${tg_prefix}\t${color:3}${tg_message_nocolor}" +botcolor_rizon_yt_info.return_code = ok +cmd_pass.arguments = "5000|input_text_display;5000|history_add;5000|irc_command_auth" +cmd_pass.command = "" +cmd_pass.conditions = "" +cmd_pass.enabled = on +cmd_pass.hook = modifier +cmd_pass.post_action = none +cmd_pass.regex = "==^((/(msg|m|quote) +(-server +[^ ]+ +)?nickserv +(id|identify|set +password|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|recover +[^ ]+) +)|/oper +[^ ]+ +|/quote +pass +|/set +[^ ]*password[^ ]* +|/secure +(passphrase|decrypt|set +[^ ]+) +)(.*)==${re:1}${hide:*,${re:+}}" +cmd_pass.return_code = ok +cmd_pass_register.arguments = "5000|input_text_display;5000|history_add;5000|irc_command_auth" +cmd_pass_register.command = "" +cmd_pass_register.conditions = "" +cmd_pass_register.enabled = on +cmd_pass_register.hook = modifier +cmd_pass_register.post_action = none +cmd_pass_register.regex = "==^(/(msg|m|quote) +nickserv +register +)([^ ]+)(.*)==${re:1}${hide:*,${re:3}}${re:4}" +cmd_pass_register.return_code = ok +msg_auth.arguments = "5000|irc_message_auth" +msg_auth.command = "" +msg_auth.conditions = "" +msg_auth.enabled = on +msg_auth.hook = modifier +msg_auth.post_action = none +msg_auth.regex = "==^(.*(id|identify|set +password|register|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|recover +[^ ]+) +)(.*)==${re:1}${hide:*,${re:+}}" +msg_auth.return_code = ok +relaybot_libera_scriptkitties_gizmo.arguments = "weechat_print" +relaybot_libera_scriptkitties_gizmo.command = "" +relaybot_libera_scriptkitties_gizmo.conditions = "${tg_tag_host} == bot@darkorb.robotham.dev" +relaybot_libera_scriptkitties_gizmo.enabled = on +relaybot_libera_scriptkitties_gizmo.hook = modifier +relaybot_libera_scriptkitties_gizmo.post_action = none +relaybot_libera_scriptkitties_gizmo.regex = "/.*<([^>]+)> (.*)/${re:1}\t${re:2}/" +relaybot_libera_scriptkitties_gizmo.return_code = ok +relaybot_oftc_scriptkitties_skbot.arguments = "weechat_print" +relaybot_oftc_scriptkitties_skbot.command = "" +relaybot_oftc_scriptkitties_skbot.conditions = "${tg_tag_host} == ~skbot@2a01:4f9:c010:e20c::1" +relaybot_oftc_scriptkitties_skbot.enabled = on +relaybot_oftc_scriptkitties_skbot.hook = modifier +relaybot_oftc_scriptkitties_skbot.post_action = none +relaybot_oftc_scriptkitties_skbot.regex = "/[^\[]*\[(\w+)\] <(\W?)([^>]+)> (.*)/${color:darkgray}${re:2}${color:brown}${re:3}${color:darkgray}@${color:brown}${re:1}${color:reset}\t${re:4}/" +relaybot_oftc_scriptkitties_skbot.return_code = ok +relaybot_oftc_scriptkitties_skbot_action.arguments = "weechat_print" +relaybot_oftc_scriptkitties_skbot_action.command = "" +relaybot_oftc_scriptkitties_skbot_action.conditions = "${tg_tag_host} == ~skbot@2a01:4f9:c010:e20c::1" +relaybot_oftc_scriptkitties_skbot_action.enabled = on +relaybot_oftc_scriptkitties_skbot_action.hook = modifier +relaybot_oftc_scriptkitties_skbot_action.post_action = none +relaybot_oftc_scriptkitties_skbot_action.regex = "/[^\[]*\[(\w+)\] \* (\W?)(\S+) (.*)/*\t${color:brown}${re:3}${color:darkgray}@${color:brown}${re:1}${color:reset} ${re:4}/" +relaybot_oftc_scriptkitties_skbot_action.return_code = ok +selfcolor_msg_tyil.arguments = "weechat_print" +selfcolor_msg_tyil.command = "" +selfcolor_msg_tyil.conditions = "${tg_tags} =~ ,nick_tyil," +selfcolor_msg_tyil.enabled = on +selfcolor_msg_tyil.hook = modifier +selfcolor_msg_tyil.post_action = none +selfcolor_msg_tyil.regex = "/.*/${tg_prefix}\t${color:7}${tg_message_nocolor}" +selfcolor_msg_tyil.return_code = ok +server_pass.arguments = "5000|input_text_display;5000|history_add" +server_pass.command = "" +server_pass.conditions = "" +server_pass.enabled = on +server_pass.hook = modifier +server_pass.post_action = none +server_pass.regex = "==^(/(server|connect) .*-(sasl_)?password=)([^ ]+)(.*)==${re:1}${hide:*,${re:4}}${re:5}" +server_pass.return_code = ok -- cgit v1.1