Coder Social home page Coder Social logo

Gonk

Your friendly neighborhood IRC droid

What is Gonk?

Gonk is an IRC bot written in Go. Its modular design and embedded JavaScript engine make it easy to dynamically add functionality via "modules".

The API exposed to modules replicates that of Hubot, so that scripts for Hubot can be used interchangeably with Gonk with few or no modifications.

Gonk does not currently support CoffeeScript - scripts must be translated to JavaScript before they can be used.

Usage

$ Gonk -server=irc.host.com -ssl=true -password=serverPassword channel1 channel2

On startup, Gonk will search the modules directory and attempt to load any file with the extension .js as a module.

Dependencies

  • Go 1.1+
  • Make/GCC
  • Google V8 headers and library

How to Build

Gonk embeds the V8 engine and binds to it with go-v8. This complicates the build process a bit. These instructions assume that a proper compiler toolchain and the V8 library and header files exist on your system in the standard location and that you understand building with Makefiles and the Go workflow (e.g. how to use GOPATH).


First, Gonk and its dependencies need to be installed into your GOPATH:

$ go get github.com/Gonk/Gonk

This command will appear to fail for go-v8. This is because go-v8 requires an additional build step:

$ cd $GOPATH/src/github.com/Gonk/go-v8
$ make

This will build a V8 wrapper library and install it in your GOPATH. You should now be able to finish building and run Gonk:

$ go get github.com/Gonk/Gonk
$ $GOPATH/bin/Gonk

gonk's Projects

goirc icon goirc

Event-based stateful IRC client framework for Go.

gonk icon gonk

Your friendly neighborhood IRC droid

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.