Giter VIP home page Giter VIP logo

mcchunkie's Introduction

mcchunkie

mcchunkie

an irc bot with dynamically loadable plugins.

Features

  • Dynamic plugins
  • Chat as bot ( using mcchat )
  • Subscribes to "botname:*" redis pubsub
  • Ability to chat "messages" from pubsub ( see messages/ for examples )
  • Persistent storage for pubsub'd messages

Plugin Features

  • aprs.js - query the FCC license database for license info. requires api key for aprs.fi
  • basho.js - print haikus from Basho
  • beer.js - query brewerydb for delicious delicious beer
  • botsnack.js - feed the bot!
  • dayum.js - Daaayum Daaayyyyuuummm DAAAAAAYYYYUUUUMMMMMMMM
  • dolan.js - translate to dolantalk
  • emacs.js - we are emacs!
  • ermahgerd.js - translate to ermahgerd talk
  • free.js - no one is as free as 'Merika!
  • getoverhere.js - mortal kombat style ~~~~~~>
  • ham.js - query the FCC license database for license info.
  • ham_tests.js - quiz players on Extra, General and Tech exams for Ham Radio.
  • high5.js - respond to high5's
  • howmany.js - query openbsd ports for maintainer count info
  • love.js - respond to people who love us
  • mojo.js - I got my mojo workin!
  • navi.js - HEY LOOK!!!!! AHHHHHHHH!
  • openbsd.js - uses the pubsub
  • oyfb.js - respond randomly to ooyfb
  • pew.js - get shot with LASERS!
  • pigpen.js - translate text to pigpen
  • protip.js - return random protips
  • puny.js - translate strings to punycode
  • putitback.js - once a table has been fliped, politely put it back
  • random_info.js - tell everyone about OpenSSH's native vpn capability
  • reverse.js - reverse a string
  • sballs.js - do you know SpaceBalls?
  • tell.js - tell $person $msg next time you see them
  • thanks.js - be polite
  • tmnt.js - return random TMNT quotes (really hard to find good ones!)
  • twss.js - watch incoming messages for possible twss jokes. Can be trained.
  • uptime.js - print bot's uptime
  • version.js - print version information
  • wb.js - respond to welcom backs
  • weed.js - search leafly for types of weed (requires api key)
  • wq.js - print the tales of Wq
  • xmas.js - ride the joly train on xmas!
  • yeah.js - pull a sweet CSI move
  • ykysaw.js - you know you're South African when

Writing Plugins

Plugins should be javascript functions wrapped in (); and should take six args: botname, to, from, msg, store and callback.

The callback should be passed null, to, from, and resp.

Example:

(function( botname, to, from, msg, store, cb ) {
  // Plugin to reverse every msg that is passed in.
  var resp = msg.split("").reverse().join("");

  // do something awesome with storage here..

  // do some more manip of the msg here

  cb.call( null, to, from, resp );
});

To disable a plugin, simple add a '''~''' to the name.

Installation

git clone <repo>;
cd <repo>;
npm install;
node bin/mcchunkie -h

Usage

-n <nick> -s <server> -c <chan1>,<chan2> -j <xmpp jid> -p <xmpp password>

Example:

nodejs bin/mcchunkie -n 'nameOfBot' -s 'host' -c 'channelName'

mcchunkie's People

Contributors

qbit avatar zamicol avatar brycied00d avatar kisom avatar

Watchers

James Cloos avatar  avatar

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.