robotirc

Multifonction IRC bot written in Node.js
Log | Files | Refs | README | LICENSE

commit 525cb48f3162b5125b3c573a0dae1ebd1a084feb
parent def97a416be80b2407fa28e68bf5b9e72cfd110a
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Sun,  5 Jan 2014 20:46:32 +0100

Making the program executable and installable

Diffstat:
Dindex.js | 1-
Mlib/robotirc.js | 4+++-
Mpackage.json | 5++++-
3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/index.js b/index.js @@ -1 +0,0 @@ -module.exports = require('./lib/robotirc'); diff --git a/lib/robotirc.js b/lib/robotirc.js @@ -1,10 +1,12 @@ +#!/usr/bin/env node + /*****************************************************************************/ /* */ /* RobotIRC 0.1.1 (c) by Frederic Cambus 2013-2014 */ /* https://github.com/fcambus/robotirc */ /* */ /* Created: 2013/12/17 */ -/* Last Updated: 2014/01/03 */ +/* Last Updated: 2014/01/05 */ /* */ /* RobotIRC is released under the BSD 2-Clause license. */ /* See LICENSE file for details. */ diff --git a/package.json b/package.json @@ -2,7 +2,10 @@ "name": "robotirc", "version": "0.1.1", "description": "Multifonction IRC bot written in Node", - "main": "index.js", + "preferGlobal": "true", + "bin": { + "robotirc": "lib/robotirc.js" + }, "repository": { "type": "git", "url": "https://github.com/fcambus/robotirc"