cleverbot-irc
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "clvr", | ||
"server": "irc.quakenet.org", | ||
"chan": "#clevarr" | ||
"ircOpts": { | ||
"channels": ["#clevarr"], | ||
"userName": "IAmA", | ||
"realName": "clever", | ||
"debug": "false" | ||
}, | ||
"opts": { | ||
"conversationMode": "true" | ||
} | ||
} |
@@ -17,3 +17,3 @@ var CleverBot = new require('cleverbot-node') | ||
'...', | ||
'You should be wcforking.', | ||
'You should be working.', | ||
'This is not a productive area of discussion.', | ||
@@ -32,3 +32,3 @@ 'Do you even lift?' | ||
gu.handle(/(.*)/, function (message, say, user) { | ||
gu.handle(/(.*)/, function (say, message, user) { | ||
if (!protection.isIgnored(user)) { | ||
@@ -35,0 +35,0 @@ if (protection.isTooSimilar(user, message)) { |
#!/usr/bin/env node | ||
var cfgPath = require('confortable')('.clvr.json', process.cwd()); | ||
if (!cfgPath) { | ||
throw new Error("When loading wolfram-irc externally, a local config is required"); | ||
throw new Error("When loading cleverbot-irc externally, a local config is required"); | ||
} | ||
@@ -10,9 +10,4 @@ var cfg = require(cfgPath); | ||
var gu = require('gu')(join(__dirname, 'bot'), ['clvr.js']); | ||
var ircStream = require('irc-stream')(cfg.server, cfg.name, { | ||
userName: 'IAmA', | ||
realName: 'clever', | ||
debug: false, | ||
channels: [cfg.chan], | ||
}); | ||
var ircStream = require('irc-stream')(cfg.server, cfg.name, cfg.ircOpts, cfg.opts); | ||
ircStream.pipe(gu).pipe(ircStream); |
@@ -5,6 +5,6 @@ { | ||
"description": "IRC bot that defers to Cleverbot", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/clux/cleverbot-irc.git" | ||
"url": "clux/cleverbot-irc" | ||
}, | ||
@@ -20,4 +20,4 @@ "scripts": { | ||
"dye": "~0.2.0", | ||
"gu": "~0.1.0", | ||
"irc-stream": "~0.0.1", | ||
"gu": "~0.2.2", | ||
"irc-stream": "~0.0.5", | ||
"cleverbot-node": "~0.1.2", | ||
@@ -24,0 +24,0 @@ "suncalc": "~1.2.1", |
# cleverbot-irc | ||
[![Dependency Status](https://david-dm.org/clux/cleverbot-irc.png)](https://david-dm.org/clux/cleverbot-irc) | ||
[![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://nodejs.org/api/documentation.html#documentation_stability_index) | ||
A simple and fun IRC bot that connects to a server/channel of choice and will relay any messages addressed to it in the channel to [Cleverbot](http://http://www.cleverbot.com/) for public humiliation/laughs. | ||
@@ -30,2 +33,20 @@ | ||
This is the main reason for the experimental tag; no guarantees on how this behaviour changes. | ||
Because otherwise this module would be a super short. In fact, this short: | ||
```js | ||
var CleverBot = new require('cleverbot-node'); | ||
var clever = new CleverBot(); | ||
module.exports = function (gu) { | ||
gu.handle(/(.*)/, function (say, message, user) { | ||
clever.write(message, function (data) { | ||
say(data.message); | ||
}); | ||
}); | ||
}; | ||
``` | ||
You don't need me for that. | ||
## Internal Highlights | ||
@@ -32,0 +53,0 @@ |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
9000
149
94
1
+ Addedgu@0.2.2(transitive)
- Removedgu@0.1.1(transitive)
Updatedgu@~0.2.2
Updatedirc-stream@~0.0.5