mumixam / weechat-twitch Goto Github PK
View Code? Open in Web Editor NEWChecks status of streams using twitch api
Checks status of streams using twitch api
Does this support the message tags that show people's bit badges, display names, etc?
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?
Check current one from here https://dev.twitch.tv/docs/irc#connecting-to-the-twitch-irc-server
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.
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:
EDIT: I have also tried regenerating new tokens to no avail.
twitch.py version 0.8
weechat version 2.5
messages in the twitch server buffer
irc : commande "WHISPER" non trouvée :
@badges=;color=#00FF7F;display-name=Botisimo;emotes=;message-id=12;thread-id=;turbo=0;user-id=;user-type= :botisimo![email protected] PRIVMSG *** :Kich: 287,435
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 :)
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.
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.
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
Hello,
It seems that some streams now send messages in chat from extensions.
Is it possible to show that in weechat? Is there even endpoint for that?
Cheers,
Furai
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
?
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
I love this extension and use it a lot. It would be fantastic if the oAuth token could be stored inside the secure data storage feature.
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.prnt
s.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.