domsson / libtwirc Goto Github PK
View Code? Open in Web Editor NEWTwitch IRC library for Linux - no dependencies
License: Creative Commons Zero v1.0 Universal
Twitch IRC library for Linux - no dependencies
License: Creative Commons Zero v1.0 Universal
Currently, we are using the #jtv
channel to send whispers and change color, as these commands are mostly channel-independent. However, this seems to be a historical thing to do that is somewhat outdated. BarryCarlyon from discuss.dev.twitch.tv adviced to simply use the bot's / user's own channel for these things, which sounds like a great idea.
More than that, let's change these commands so they do accept a channel, but make the argument optional (can hand in NULL
). If NULL
is provided, we use the user's channel.
For key-only tags, twirc_tag_t
's value
member will be NULL
. This is not exactly intuitive and also makes user code more complicated, as it makes for one additional null-check. Instead, key-only tags should have an empty string as value
.
Would be nice. Currently using this by running code under WSL, and then forwarding results onto a Windows program on host machine via sockets, which is... suboptimal.
Currently, we're using IPv4 (hardcoded). Does Twitch support IPv6? Does our code actually work with IPv6? If both are true, we should implement an option for the user to use it, if they want. One option would be to have another connection function, twirc_connect6()
, like libircclient
does. Another option would be an optional parameter to the connect function. A third option would be to implement a way in which the user can set certain options before actually establishing a connection (again, libircclient
does this with something like irc_set_option()
or similar).
Seeing how this is a library intended for everyone to use, we really should write and run some unit tests. Segfaulting in private projects is one thing, causing them in other people's code is kind of embarrassing.
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.