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 1.1.0 to 1.1.2

22

bot/clvr.js

@@ -1,3 +0,3 @@

var CleverBot = new require('cleverbot-node')
, clever = new CleverBot()
var Cleverbot = require('cleverbot-node')
, clever = new Cleverbot()
, protection = require('./echo_protection')

@@ -40,11 +40,13 @@ , maybeSpiceUp = require('./fullmoon_spiceup');

// pass message on to cleverbot
clever.write(message, function (data) {
var resp = data.message;
// remember the last thing `user` got returned to him
// so we can verify that he doesn't simply echo it back
protection.remember(user, resp);
gu.log.info('clvr:', resp);
Cleverbot.prepare(function () {
clever.write(message, function (data) {
var resp = data.message;
// remember the last thing `user` got returned to him
// so we can verify that he doesn't simply echo it back
protection.remember(user, resp);
gu.log.info('clvr:', resp);
// do fancy things to the message on full moons
say(maybeSpiceUp(resp));
// do fancy things to the message on full moons
say(maybeSpiceUp(resp));
});
});

@@ -51,0 +53,0 @@ }

@@ -5,3 +5,3 @@ {

"description": "IRC bot that defers to Cleverbot",
"version": "1.1.0",
"version": "1.1.2",
"repository": {

@@ -23,5 +23,5 @@ "type": "git",

"dependencies": {
"cleverbot-node": "^0.1.8",
"cleverbot-node": "^0.2.1",
"confortable": "^0.2.1",
"gu": "^0.6.0",
"gu": "^0.6.1",
"sulfur": "^1.0.0",

@@ -28,0 +28,0 @@ "irc-colors": "^1.0.3",

@@ -35,20 +35,2 @@ # cleverbot-irc

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

@@ -55,0 +37,0 @@

@@ -22,2 +22,3 @@ var Gu = require('gu')

t.equal(resp.channel, '#test', 'in requested channel');
t.notEqual(resp.message, 'Error: 404', 'and it isnt broken');
if (sent === 1) {

@@ -24,0 +25,0 @@ t.equal(resp.message, '.', 'mimicing got us ignored');

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