GithubHelp home page GithubHelp logo

weechat-twitch's People

Contributors

devlogic avatar mas90 avatar mentalfs avatar mumixam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

weechat-twitch's Issues

/WHOIS Response Location When Using Relay Client

Hello,

From the README, it says:

/whois twitchuser will perform a api lookup on said user and reply in the buffer you issued the command from.

I discovered a slight issue with this. When I ran a /WHOIS on myself from a relay client, the output is written to whatever buffer WeeChat itself is focused on. In my case, WeeChat was looking at the core.weechat buffer, while my /WHOIS command was issued from the irc.server.twitch buffer in Glowing-Bear.

Is there a way to improve this behavior so that the response can be sent to the buffer the command was issued from, or to the Twitch server window itself?

Ideas

Some suggestions ->
a.) "/online" -> list all online channels i follow in the twitch server page
b.) "/play" -> sends the current channel to an external program configured by a var -> mpv https://www.twitch.tv/{channelname}
c.) "/play {channelname}" -> does the same as /play but with a specific channelname
d.) "/openbrowser" does the same as play but sends to the default browser (since follow api has been disable the only way to follow someone currently)
e.) would be cool if the userlist can have the @ / % and so on too and be sorted the way it is as on twitch (stream , mods , vips , subs)

thanks alot i like the integration so far :)

Unable to use WeeChat's secured data to store token

This script tells me to set the Twitch API OAuth2 token like this:

/set plugins.var.python.twitch.token (token from url)

However I don't like having that token in plain text in my configuration. Therefore I tried storing it using WeeChat's secured data:

/set plugins.var.python.twitch.token ${sec.data.twitch}

However apparently secured data can only be used in options which are explicitly set to be evaluated. It seems that plugins.var.python.twitch.token is not among them.

Would it be possible to evaluate that option, so that secured data could be used there? Alternatively could the script read irc.server.X.password where X is in plugins.var.python.twitch.server?

Can't connect to twitch

Hello,
I try to use weechat-twitch, but no success. I also did /set plugins.var.python.twitch.ssl_verify off but it doesb't change anythin, I still have these errors:

irc: connecting to server irc.twitch.tv/6667 (SSL)...
19:33 ⚠ irc: TLS handshake failed
19:33 ⚠ irc: error: An unexpected TLS packet was received.
19:33 ℹ  irc: reconnecting to server in 10 seconds
19:33 ℹ  irc: reconnecting to server...
19:33 ℹ  irc: connecting to server irc.twitch.tv/6667 (SSL)...
19:33 ⚠ irc: TLS handshake failed
19:33 ⚠ irc: error: An unexpected TLS packet was received.
19:33 ℹ  irc: reconnecting to server in 20 seconds
19:33 irc: auto-reconnection is cancelled

What can be wrong?

Thank you.

Is this still working and/or supported?

Setup with a fresh compilation of weechat 3.1 and the latest version of the script in github and I am unable to get the script to auth to the Twitch API despite the client_id and token being both set and equal values. Here's the error response from the API:

twitch.py: Error with twitch API (data key missing from json)
twitch.py: {"error":"Unauthorized","status":401,"message":"Client ID and OAuth token do not match"}

Here's a screenshot the the settings too:
image

EDIT: I have also tried regenerating new tokens to no avail.

=!= twitch.py: error communicating with twitch api

Hello,

I'm receiving a lot of errors with this script recently, and I reinstalled and the issue still persists. I even tried registering my own client ID on Twitch thinking that maybe the app has reached its resource limit or something, but nope.

When trying to enable debugging, I managed to crash weechat so I'm not tempted to do it again.

Add WeeChat Message Tags to Printed Messages

Hello,

I have the WeeChat logger set to level 3 for all channels (/set logger.level.irc.twitch 3), and I was looking back at some scrollback where I noticed that the scripts various notice-like messages are not being stored. Upon further inspection, it looks like this is because there are no relevant message tags added to the weechat.prnts.

Normal tags from a channel notice sent by tmi.twitch.tv: irc_notice,notify_message,nick_tmi.twitch.tv,host_tmi.twitch.tv,log1

Based on this, I think adding log1 will fix my particular issue. It might be worth adding notify_message as well, so that people who have their hotlists configured accordingly will be notified on Twitch-specific messages.

twitch.py: error communicating with twitch api

getting the following error;

python: error in function "twitch_in_privmsg"
14:58:25     | python: stdout/stderr (twitch): Traceback (most recent call last):
             | python: stdout/stderr (twitch):   File "/Users/hamza/.local/share/weechat/python/twitch.py", line 499,
             | in twitch_in_privmsg
             | python: stdout/stderr (twitch):     tags = dict([s.split('=') for s in mp['tags'].split(';')])
             | python: stdout/stderr (twitch):            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
             | python: stdout/stderr (twitch): ValueError: dictionary update sequence element #11 has length 5; 2 is
             | required

whois does not seem to work

The /whois command does not seem to work, I have tried to enable debugging as well as disable tls, there is simply no output, no errors, no traceback nothing, it does catch the whois command as it does not return a error that whois does not exist however, it does not return any data.

/whois does not work

Typing /whois [nick] while in channel does not return user info.

The following was sent to the core WeeChat buffer:
15:26 python: stdout/stderr: Traceback (most recent call last): 15:26 python: stdout/stderr: File "/home/yoosi/.weechat/python/autoload/twitch.py", line 127, in channel_api 15:26 python: stdout/stderr: pcolor, pformat, dcolor, ncolor, name, dcolor, ccolor, ul, rul, create) 15:26 python: stdout/stderr: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 3: ordinal not in range(128) 15:26 ! python: error in function "channel_api"

Note: All other Twitch commands appear to work.

I am running WeeChat 1.8

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.