New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cleverbot-irc

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cleverbot-irc - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

10

.clvr.json
{
"name": "clvr",
"server": "irc.quakenet.org",
"chan": "#clevarr"
"ircOpts": {
"channels": ["#clevarr"],
"userName": "IAmA",
"realName": "clever",
"debug": "false"
},
"opts": {
"conversationMode": "true"
}
}

4

bot/clvr.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc