robotirc

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

commit 7a62b0e07e921e1b02ae8030e1f7b839aba2cadc
parent 151675d55d8ccb3f73857751b535fc285b7e422b
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri,  3 Feb 2017 11:55:15 +0100

Formatting fixes

Diffstat:
MREADME.md | 10+++++-----
Mlib/robotirc.js | 4++--
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md @@ -6,7 +6,7 @@ Multifonction IRC bot written in Node.js. ## Installation -Install the program : +Install the program: npm install -g robotirc @@ -18,7 +18,7 @@ Start RobotIRC by invoking `robotirc`. Configuration options are set in the `~/.robotirc` file. If RobotIRC cannot find an user defined configuration file in the home directory, the bundled `config.json` if used instead. -Example configuration with default options : +Example configuration with default options: { "server": "irc.freenode.net", @@ -37,7 +37,7 @@ Example configuration with default options : ## Commands -RobotIRC supports the following commands : +RobotIRC supports the following commands: - !alexa (Get Alexa traffic rank for a domain or URL) - !date (Display server local time) @@ -53,7 +53,7 @@ A list of available functions can be displayed by using the `!help` command. ## Examples <fcambus> !alexa echojs.com - <robotirc> Alexa Traffic Rank for echojs.com : 267098 + <robotirc> Alexa Traffic Rank for echojs.com: 267098 <fcambus> !date <robotirc> Fri Jan 03 2014 01:02:39 GMT+0100 (CET) @@ -104,7 +104,7 @@ RobotIRC is released under the BSD 2-Clause license. See `LICENSE` file for deta ## Author -RobotIRC is developed by Frederic Cambus +RobotIRC is developed by Frederic Cambus. - Site: https://www.cambus.net - Twitter: https://twitter.com/fcambus diff --git a/lib/robotirc.js b/lib/robotirc.js @@ -68,7 +68,7 @@ module.exports = function(config) { /**********************************************************[ !help ]**/ if (message.match(/^!help/)) { - var help = "RobotIRC 0.1.2 supports the following commands :\n" + + var help = "RobotIRC 0.1.2 supports the following commands:\n" + "!alexa => Get Alexa traffic rank for a domain or URL\n" + "!date => Display server local time\n" + "!expand => Expand a shortened URL\n" + @@ -86,7 +86,7 @@ module.exports = function(config) { if (message.match(/^!alexa/)) { alexa(params, function(error, result) { if (!error && typeof result.rank != "undefined") { - client.say(to, "Alexa Traffic Rank for " + result.idn.slice(0, -1) + " : " + result.rank); + client.say(to, "Alexa Traffic Rank for " + result.idn.slice(0, -1) + ": " + result.rank); } }); }