Coder Social home page Coder Social logo

Memes suck about node-irc-relay HOT 6 OPEN

ford-prefect avatar ford-prefect commented on June 24, 2024
Memes suck

from node-irc-relay.

Comments (6)

ford-prefect avatar ford-prefect commented on June 24, 2024

I'm going to paste a patch here because github literally sicks hairy monkey balls

from node-irc-relay.

ford-prefect avatar ford-prefect commented on June 24, 2024
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.

ford-prefect avatar ford-prefect commented on June 24, 2024

Closed by mistake. Reopened now.

from node-irc-relay.

nirbheek avatar nirbheek commented on June 24, 2024

I don't see the patch attached, so here's the paste: http://paste.pocoo.org/show/505713/

from node-irc-relay.

pathsny avatar pathsny commented on June 24, 2024

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.

ford-prefect avatar ford-prefect commented on June 24, 2024

Thanks! :)

from node-irc-relay.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.