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 [email protected]: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.
-
- Add commands that actually do something useful
-
DuckDuckGo Search
-
Logging
-
Tests would be nice >.>
GPLv2, see LICENSE file.