darthlukan / gobot

A basic IRC bot using github.com/thoj/go-ircevent
GNU General Public License v2.0
7 stars 2 forks source link

GoBot

Gitter Build Status

IMPORTANT!

Development of GoBot has moved to TheSetKehProject under the Ana repository. There will be no more updates to this repository but it will be kept here so that users of this original project can still benefit from its use. For those users that still wish to contribute to GoBot as a learning tool or simply to get into contributing to open source projects, I will review and merge pull requests that do not cause build breakage and where new code makes sense.

For users seeking more than "just an IRC bot" to use and/or contribute to, please refer to the Ana repository.

Description

GoBot is my first stab at an IRC bot written in Go. The goal is for it to become less of a "dumb bot" and more of an semi-clever assistant.

Installation

Important: Requires Go>=1.3

    $ go get github.com/darthlukan/gobot

Or:

    $ mkdir -p $GOPATH/src/github.com/darthlukan
    $ cd $GOPATH/src/github.com/darthlukan
    $ git clone git@github.com:darthlukan/gobot.git
    $ cd gobot

Usage

Edit the config.json file located in $GOPATH/src/github.com/darthlukan/gobot to your preferences.

After those variables have been edited, you can run:

$ go install .    # Note the '.'
$ gobot

in-channel interaction

For now, the available commands are fairly limited, here's what's available:

    !search Los Angeles
    !ddg New York

!bangs support has also been included, so you can get results from Google as well as many other sources:

    !search !google weather in Los Angeles
    !search !archwiki i3
    !ddg !godoc cakeday
    !cakeday darthlukan
    !slap SomeUser really hard
    >> *$botNick slaps SomeUser really hard, FOR SCIENCE!

Logging

Gobot can now Log Channels.

Set the "LogDir" in config.json

NOTE: the Directory Must be Writable by the user executing the bot.

License

GPLv2, see LICENSE file.