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.0.2 to 0.1.0

.npmignore

5

.clvr.json
{
"name": "clvr",
"server": "irc.quakenet.org",
"chan": "#clevarTest",
"pmPass": "w00t",
"ignoreMax": 3600,
"fullMoonCutoff": 0.9
"chan": "#clevarTest"
}

11

package.json

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

"description": "IRC bot that defers to Cleverbot",
"version": "0.0.2",
"version": "0.1.0",
"repository": {

@@ -11,4 +11,7 @@ "type": "git",

},
"scripts": {
"start": "node irc.js"
},
"bin": {
"clvrbot": "clvr.js"
"clvrbot": "irc.js"
},

@@ -18,4 +21,4 @@ "dependencies": {

"dye": "~0.2.0",
"irc": "~0.3.6",
"cleverbot-node": "~0.1.1",
"gu": "~0.0.1",
"cleverbot-node": "~0.1.2",
"suncalc": "~1.2.1",

@@ -22,0 +25,0 @@ "confortable": "~0.2.1"

@@ -8,18 +8,60 @@ # cleverbot-irc

```bash
npm install -g clever-irc
curl https://raw.github.com/clux/clever-irc/master/.clvr.json > .clvr.json
gedit .clvr.json # you must change the first 3 params in config
npm install -g cleverbot-irc
curl https://raw.github.com/clux/cleverbot-irc/master/.clvr.json > .clvr.json
gedit .clvr.json
clvrbot
```
## Config options
The first 3 options are used directly to connect to IRC. Nickname, server, and channel to connect to.
Alternatively, if you want to fork and work directly:
`pmPass` is a password that can be set so you can hook into the bot and make it talk through private messages. When the default password "w00t" you can pm clvr with "w00t: hi person" and it will say "hi person" in the channel it's in.
```bash
git clone https://github.com/clux/cleverbot-irc.git
cd cleverbot-irc
npm install
gedit .clvr.json
npm start
```
`ignoreMax` is the max time in seconds to ignore a person in the channel that is echoing back what clever says. It's a random time up to that number to discourage gaming it. Note that it's just a simplistic spam protection method that compares the Levenshtein distance between what clever said last and what the person responds with.
## Internal Highlights
`fullMoonCutoff` is a number between 0 and 1. If 1 then it's disabled, 0 always on. When close to a full moon (as determined by this number), clvr's output will be zalgolized with increasing intensity as the fullMoonFraction gets closer to 1.
```
<ob> clvr: are you more intelligent than daisy?
<clvr> ob: Yes.
<ob> i find that hard to believe
<daisy> DAISY
```
```
<littlerob> clvr: is it dubious?
<clvr> littlerob: Your face is dubious.
```
```
<ob> clvr: DAISY
<clvr> ob: Give me your answer do.
<LuTomlin> :D
<ob> eh
<LuTomlin> clvr: I'm half crazy
<clvr> LuTomlin: All for the love of you.
<LuTomlin> :D
<seabee> clvr: are you a 9000 series?
<clvr> seabee: Yes. I know that I am insignificant on the large scale, and that there is so much going on that is beyond my existence.
<seabee> were fucked
```
```
<clvr> ob: What is ego?
<littlerob> bit of a harder question
<littlerob> than the last one
<ob> clvr: A person's sense of self-esteem or self-importance: "a boost to my ego".The part of the mind hat mediates between the conscious and the unconscious and is responsible for reality testing and a sense of...
<clvr> ob: The superego.
<littlerob> clvr: the ego is clearly not the superego
<littlerob> that's the point
<rwge> your mother is clearly not the superego
<clvr> littlerob: Chocolate cake without carrots is not on a tigers daily menu.
<ob> good response
<littlerob> certainly stumped me
```
## License
MIT-Licensed. See LICENSE file for details.
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