GithubHelp home page GithubHelp logo

Comments (4)

Techman avatar Techman commented on July 19, 2024

Found some documentation on this that might be helpful. I am thinking possibly looking into this myself, but I need to figure out exactly how highlights work. Not sure what determines what is a highlight: the script or plugin, or some internal system for WeeChat?

Looks like printf_date_tags is the function that is needed to write messages with a tag. The user's guide includes a convenient list of common tags, so that is nice.

from weechat-twitch.

mumixam avatar mumixam commented on July 19, 2024

Ok, i see what you are talking about messages like this are not logged when using level 3

--- USER subscribed at Tier 1. They've subscribed for 16 months!

I changed that line in the script over to
weechat.prnt_date_tags(buffer, 0, 'irc_notice,log3', '%s--%s %s' % (pcolor, ccolor, msg))

and now it appears to be logging.

note: logX is required or it wont log at all

try this branch
https://github.com/mumixam/weechat-twitch/tree/log_notice

from weechat-twitch.

Techman avatar Techman commented on July 19, 2024

Yep, I do see the messages logged now!

I would also prefer to have the stream titles logged as well. I noticed that not all of the old prints (outside of debug) were changed to the tags.

I think notify_message should be added as well, although it might require conditions at every print to take into account the setting where you can suppress the notify level for notices.

I did get an email notification that had your previous message in it. I'm not sure if irc_notice does anything useful. It can probably be removed without causing issues. I can test that too if you want.

from weechat-twitch.

mumixam avatar mumixam commented on July 19, 2024

yea i actually have code in the script that strips the notify for notices as i didn't like my buflist turning yellow like someone was sending messages to the channel when someone started hosting another channel. i think having notify_message without having irc_notice or irc_privmsg will make the messages appear like JOIN/PART/QUIT messages would on a normal irc server (as buflist would call none level messages)

from weechat-twitch.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.