IRC
Using the IRC sample bundle
The IRC example bundle in samples/irc
demonstrates the ability to get access
to an IRC chat. This sample is designed to log the twitch IRC chat of skate702.
Prerequisites
You will need a working nodecg-io
installation. If you have non yet take a
look at installation guide. You may need to
install this bundle, so take a look at the
“Try an included sample”-Guide. It
will also tell you how to log in and how to use the GUI.
Configure the IRC sample bundle
- In NodeCG, create a new IRC service instance.
-
Enter the credentials for IRC. In this example we will “anonymously” connect to the twitch IRC chat. Enter the host, port, and nick in this format:
{ "host": "irc.chat.twitch.tv", "port": 6667, "nick": "justinfan123456" }
Here you may want to change the numbers of the nick to be unique to you.
After entering it, click save.
-
Set the sample's (
irc
) dependency to be the newly created service instance (of typeirc
). -
Check the NodeCG logs:
You should see an error or a success message and all twitch messages that are written in the twitch channel that is hardcoded in
samples/irc/extension/index.ts
.