This IRC Client is settled by the environment KiwiIRC, now this is worked on http://irc.nchusg.org .
In rule, we will only setup the discrition and some theme edit, out config is settled up on first commit.
The environment we have:
-
NodeJS - the environment of KiwiIRC
-
Nginx - to link between the subdomain and the port, and doing some security for our server.
Apache - if you can setup the mod_proxy, you can tell us.
-
Python - to log down the irc
Note: This requires Node.js to run. Make sure you have installed Node.js first! http://nodejs.org/download/
-
Download the Kiwi source or clone the git repository:
$ git clone https://github.com/prawnsalad/KiwiIRC.git && cd KiwiIRC
-
Install the dependencies:
$ npm install
-
Copy and edit the configuration file as needed:
$ cp config.example.js config.js
$ vim config.js
-
Make sure the client code is built:
$ ./kiwi build
If you do really change the setting or edit the file in folder "client", you should run it again to make sure the file is update.
Here are the files which will be built, so edit them seems not work.
- Built index.html
- Built engine.io.bundle.js
- Built engine.io.bundle.min.js
- Built kiwi.js
- Built kiwi.min.js
- Built translation file de-de.json
- Built translation file es-419.json
- Built translation file fr.json
- Built translation file it.json
- Built translation file en-gb.json
- Built translation file no.json
- Built translation file pt-br.json
- Built translation file he.json
- Built translation file ru.json
- Built translation file ro.json
- Built translation file nl.json
- Built translation file vi.json
- Built translation file tr.json
- Built translation file zh-tw.json
If you want to log the irc content, you need to run python code.
-
Make sure your python version is 3 (or better).
-
open the file ./logbot/static/data/nchuLogBot.py
you can change the filename to the name you want.
-
edit the CHANNEL, NICKNAME, IDENTIFY and REALNAME.
-
Use your python3 program to run the code.
if you do all the steps, the program will create a folder name the channel you give, then, you need to change the js to let it show on web.
-
open the file ./logbot/static/js/parser.js
-
edit the variable channel in function loadjson()
-
open the browser after you run the nodejs.
Then, open the url http://localhost:port/logbot/ , it will show the log on that day.
From the source folder: $ ./kiwi start
You can also run kiwi in the foreground to see any output by using the -f
flag. Eg: $ ./kiwi -f
Our Setting is let NodeJS listen on 5001 port
Open your new Kiwi instance in your browser. By default: http://localhost:5001/