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.
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.
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
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
For now, the available commands are fairly limited, here's what's available:
- !search or !ddg: Execute a search via DuckDuckGo
!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: Find the Reddit cakeday for a user
!cakeday darthlukan
- !VERB: Echo the VERB and add a random quip.
!slap SomeUser really hard
>> *$botNick slaps SomeUser really hard, FOR SCIENCE!
Gobot can now Log Channels.
Set the "LogDir" in config.json
NOTE: the Directory Must be Writable by the user executing the bot.
GPLv2, see LICENSE file.