top
(README.md)
#Gobot: An IRC Bot#
A simple factoid/search bot. More functionality incoming.

##Features##
###Greentext###
Gobot will scan the PRIVMSGs in a channel for messages beginning with '>' and
record those messages to a database.

    go green

is the function to recall a random "greentext" from the database.

    go ungreen full-text-of-quote

is a function to forget a "greentext" quote.

###Factoids###
This function allows users to assign a response to a word when that word appears
by itself in a PRIVMSG. The syntax for setting a factoid is:

    gobot, call <reply> response

which will add a trigger on "call" for the bot to say "response" in the channel.

    gobot, forget call

is the syntax which leads the bot to forget all responses associated with
"call."

###DuckDuckGo###
I added rudimentary search functionality via DuckDuckGo. This searches their
"Instant Answers" and returns an abstract if the search query has data in the 
Abstract section. To invoke this functionality in-channel,

    go ddg search query is the rest of the line

This functionality may receive more attention to improve its performance some
time in the future.

###TODO###
* Set triggers using JSON configuration file instead of hard-coding triggers.
* Autojoin multiple channels (again, probably configured in the JSON conf file).
* Write "finger" function to get real names of users (if nick==username)

Imports 1 package(s) ΒΆ

  1. github.com/mattn/go-sqlite3