Node.js module allowing you to connect to Twitch and handle multiple events asynchronously.
I am re-writing this module for better error-handling and I'm planning to add more features to it. I have no ETA yet as I am not working on this full-time.
v1.1.1:
- [ADDED] commandCount() function to check how many messages were sent within the last 30 seconds.
- [ADDED] Send a request to the server to get a list of mods of a channel using the mods command.
- [ADDED] Mods event to retrieve the list of mods of a channel.
- [CHANGED] Part event is now including the username.
- [CHANGED] Names event is now triggered if you set twitchclient 1.
- [FIXED] Prevent commands from being sent if the bot isn't on the channel.
- [REMOVED] You are no longer required to set names to true in your configuration.
- [UPDATED] Examples updated with the last changes.
v1.1.0:
- [ADDED] twitchclient setting.
1- You will need node.js and npm. Joyent has an excellent blog post on how to get those installed, so we'll omit those details here.
2- Install node-twitch-irc via NPM:
npm install node-twitch-irc
3- Check out the examples on GitHub of how to use node-twitch-irc.
4- Check out the wiki. It's worth it.
- action
- chat
- clearchat
- connected
- disconnected
- join
- mode
- mods
- names
- part
- r9kmode
- raw
- slowmode
- submode
- subscribe
- timeout
Contact me on Twitter @Schmoopiie or create an issue on GitHub.
The MIT License (MIT)
Copyright (c) 2014 Schmoopiie
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.