Project

General

Profile

How to not get new message notified in treebar by trivia bot messages?

Added by Like Fireal 3 months ago

Hi!

How can I make it to ignore some users like trivia bots on some channels? I don't want to get notified every time a bot drops the same message again, only genuine users.

For context, I don't know if everyone has this, but I set it to change channel colour in treebar every time a user says something.

I have tried the Ignore option, but the trivia bot disappears altogether. I would still like to still be able to see the messages when I visit the channel, just not get notified (don't want the channel colour changed in treebar on new bot message).

I think the Notify option would be a good idea, but there is only Add.

Something like Notify > Don't notify from this user.

Is this option available anywhere?

Thank you!


Replies (4)

RE: How to not get new message notified in treebar by trivia bot messages? - Added by Per Amundsen 3 months ago

That's an interesting problem.

Currently there is no such option, but you can work around it with a small script that inserts the message directly into the message buffer, while halting the default message routine, something like:

on ^*:TEXT:*:#channel:{
  if ($nick == botnick) {
    echo -t < $+ $nick $+ >: $1-
    halt
  }
}

Replace #channel with the channel and botnick with the botnick,

You can check the wiki page for /echo for more formatting options, if necessary.

RE: How to not get new message notified in treebar by trivia bot messages? - Added by Per Amundsen 3 months ago

Oops missed the target window.

on ^*:TEXT:*:#channel:{
  if ($nick == botnick) {
    echo -t $target < $+ $nick $+ >: $1-
    halt
  }
}

RE: How to not get new message notified in treebar by trivia bot messages? - Added by Like Fireal 3 months ago

Sorry, not a programmer :) .

Do I need to specify/type in this target window as well?

Does this script load automatically with every program start? I just went to Edit Scripts, replaced channel and botnick and closed.

Thank you!

RE: How to not get new message notified in treebar by trivia bot messages? - Added by Per Amundsen 3 months ago

Go to Menubar -> Tools -> Edit Scripts or press ALT + R to open the Script Editor, paste the script into the editor and press Save. It will automatically load with AdiIRC on startup.

You don't need to change $target, it will always be the channel name.

    (1-4/4)