Comments (6)
I'm going to paste a patch here because github literally sicks hairy monkey balls
from node-irc-relay.
From e664dbcd9e5461a7bb57296b6669012f8a36ec29 Mon Sep 17 00:00:00 2001
From: Arun Raghavan <[email protected]>
Date: Thu, 10 Nov 2011 17:24:50 +0530
Subject: [PATCH] Make annoying meme optional
---
bot.js | 8 ++++++--
settings.json.bak | 1 +
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/bot.js b/bot.js
index 72255b5..c454783 100644
--- a/bot.js
+++ b/bot.js
@@ -91,8 +91,12 @@ model.start(function(users){
var misaka_adjectives = JSON.parse(fs.readFileSync('./misaka_adjectives.json',"ascii"));
var misakify = function(command, result) {
- var adjectives = misaka_adjectives[command] || misaka_adjectives['generic'];
- return result + " said " + bot.nick + ' ' + _(adjectives).rand();
+ if (settings['dont_be_annoying']) {
+ return result;
+ } else {
+ var adjectives = misaka_adjectives[command] || misaka_adjectives['generic'];
+ return result + " said " + bot.nick + ' ' + _(adjectives).rand();
+ }
}
bot.conn.setTimeout(180000, function(){
diff --git a/settings.json.bak b/settings.json.bak
index 1db971b..b6ca07c 100644
--- a/settings.json.bak
+++ b/settings.json.bak
@@ -9,6 +9,7 @@
"tinysong_key": "<key for tinysong searches>",
"catch_all_exceptions": <true or false>,
"baseURL": "<url with protocol>"
+ "dont_be_annoying": false,
"twitter": {
"user": <username>,
"password": <twitter password>
--
1.7.8.rc1
from node-irc-relay.
Closed by mistake. Reopened now.
from node-irc-relay.
I don't see the patch attached, so here's the paste: http://paste.pocoo.org/show/505713/
from node-irc-relay.
haha. There's a better place to fix it. I'll add a misakify option that has to be turned on
from node-irc-relay.
Thanks! :)
from node-irc-relay.
Related Issues (11)
- Needs to relay notifications of join/parts including the message
- Bot needs to relay nick changes
- Need a way to access the userlist of the channel on the other side
- Bot strips message styling (color, bold, etc) while relaying it
- Message relaying syntax needs improvement
- add the ability to store a message for a user and convey it when the user is around
- Bot needs to rate-limit its messages, lest it get kickbanned for excess flood
- search anidb given a show name HOT 1
- Spelling error in misaka_adjectives.json HOT 2
- Needs nickname cloaking on certain commands HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-irc-relay.