Difference between revisions of "User:Switchnode"

From Archiveteam
Jump to navigation Jump to search
(add some weechat filters that might be useful to someone)
 
(add telegrab filters)
Line 1: Line 1:
= Gee, [[ArchiveBot|#archivebot]] sure is noisy! =
= Gee, those bot channels sure are noisy! =


<nowiki>#</nowiki>archivebot shouldn't be considered a reliable chat channel.
If you'd like them to be quieter and you use Weechat, try these. (Don't forget to save!)


But if you'd like it to be quieter and you use Weechat, try these:
== [[ArchiveBot|#archivebot]] ==


* <code>/trigger add tag_highlights line "" "${highlight} == 1" "/$/highlight,/tags"</code>
<nowiki>#</nowiki>archivebot shouldn't be considered a reliable chat channel. But...
: Tags highlights; necessary for the following
 
* <code>/filter add bots irc.hackint.#archivebot nick_Aramaki+!highlight,nick_socialbot+!highlight *</code>
Hide all bot responses except those directed at you:
: Hides all bot responses except those directed at you
* <code>/trigger add tag_highlights line "" "${highlight} == 1" "/$/highlight,/tags"</code> (tags highlights)
* <code>/filter add commands irc.hackint.#archivebot !self_msg ^!([^a]|abort)</code>
* <code>/filter add archivebot_bots irc.hackint.#archivebot nick_Aramaki+!highlight,nick_socialbot+!highlight *</code>
: Hides bot commands other than <code>archive</code>, <code>archiveonly</code>, and <code>snscrape</code>, except yours, ''or...''
 
* <code>/filter add commands irc.hackint.#archivebot !self_msg ^(!|socialbot)</code>
Hide bot commands other than <code>archive</code>, <code>archiveonly</code>, and <code>snscrape</code>, except yours:
: Hides all bot commands except yours
* <code>/filter add archivebot_commands irc.hackint.#archivebot !self_msg ^!([^a]|abort)</code>
Don't forget to save!
''Or,'' hide all bot commands except yours:
* <code>/filter add archivebot_commands irc.hackint.#archivebot !self_msg ^(!|socialbot)</code>
 
== [[Telegram|#telegrab]] ==
 
Hide bot responses other than the 'scanning' message and the final item count:
* <code>/filter add telegrab_h2ibot irc.hackint.#telegrab nick_h2ibot !(^h2ibot:|: No public index)</code>
 
Hide all bot responses except those directed at you:
: (This is complicated because it needs to be stateful, due to the way h2ibot 'talks to itself'. It may fumble if you and others are submitting jobs at the same time, but this is rare, self-limiting, and easily elucidated with <code>/filter toggle telegrab_bot</code>.)
* <code>/trigger add telegrab_bot_on line "*;irc.hackint.#telegrab;self_msg" "${message} =~ ^!a" "" "/mute /set plugins.var.trigger.telegrab_bot.on 1"</code> (starts listening)
* <code><nowiki>/trigger add telegrab_bot_off line "*;irc.hackint.#telegrab;nick_h2ibot" "(${highlight} && (${message} =~ : Invalid command message.$)) || (${message} =~ h2ibot: Deduplicated and queued [[:digit:]]+ items.)" "/$/listen,/tags" "/mute /set plugins.var.trigger.telegrab_bot.on 0"</nowiki></code> (stops listening)
* <code>/trigger add telegrab_bot_tag line "*;irc.hackint.#telegrab;nick_h2ibot" "${plugins.var.trigger.telegrab_bot.on}" "/$/listen,/tags"</nowiki></code> (tags listened messages)
* <code>/filter add telegrab_bot irc.hackint.#telegrab nick_h2ibot+!listen *</code>
Hide all bot commands except yours:
* <code>/filter add telegrab_commands irc.hackint.#telegrab !self_msg ^!</code>

Revision as of 01:01, 17 July 2023

Gee, those bot channels sure are noisy!

If you'd like them to be quieter and you use Weechat, try these. (Don't forget to save!)

#archivebot

#archivebot shouldn't be considered a reliable chat channel. But...

Hide all bot responses except those directed at you:

  • /trigger add tag_highlights line "" "${highlight} == 1" "/$/highlight,/tags" (tags highlights)
  • /filter add archivebot_bots irc.hackint.#archivebot nick_Aramaki+!highlight,nick_socialbot+!highlight *

Hide bot commands other than archive, archiveonly, and snscrape, except yours:

  • /filter add archivebot_commands irc.hackint.#archivebot !self_msg ^!([^a]|abort)

Or, hide all bot commands except yours:

  • /filter add archivebot_commands irc.hackint.#archivebot !self_msg ^(!|socialbot)

#telegrab

Hide bot responses other than the 'scanning' message and the final item count:

  • /filter add telegrab_h2ibot irc.hackint.#telegrab nick_h2ibot !(^h2ibot:|: No public index)

Hide all bot responses except those directed at you:

(This is complicated because it needs to be stateful, due to the way h2ibot 'talks to itself'. It may fumble if you and others are submitting jobs at the same time, but this is rare, self-limiting, and easily elucidated with /filter toggle telegrab_bot.)
  • /trigger add telegrab_bot_on line "*;irc.hackint.#telegrab;self_msg" "${message} =~ ^!a" "" "/mute /set plugins.var.trigger.telegrab_bot.on 1" (starts listening)
  • /trigger add telegrab_bot_off line "*;irc.hackint.#telegrab;nick_h2ibot" "(${highlight} && (${message} =~ : Invalid command message.$)) || (${message} =~ h2ibot: Deduplicated and queued [[:digit:]]+ items.)" "/$/listen,/tags" "/mute /set plugins.var.trigger.telegrab_bot.on 0" (stops listening)
  • /trigger add telegrab_bot_tag line "*;irc.hackint.#telegrab;nick_h2ibot" "${plugins.var.trigger.telegrab_bot.on}" "/$/listen,/tags"</nowiki> (tags listened messages)
  • /filter add telegrab_bot irc.hackint.#telegrab nick_h2ibot+!listen *

Hide all bot commands except yours:

  • /filter add telegrab_commands irc.hackint.#telegrab !self_msg ^!