func Init() { bot.PluginFunc(randPlugin) bot.PluginFunc(decidePlugin) bot.CommandFunc(randCmd, "rand", "rand <range> -- "+ "choose a random number in range [lo-]hi") bot.CommandFunc(decideCmd, "decide", "decide <options> -- "+ "choose one of the (space, pipe, quote) delimited options at random") }
func Init() { qc = quotes.Init() bot.PluginFunc(quotePlugin) bot.CommandFunc(add, "qadd", "qadd <quote> -- Adds a quote to the db.") bot.CommandFunc(add, "quote add", "quote add <quote> -- Adds a quote to the db.") bot.CommandFunc(add, "add quote", "add quote <quote> -- Adds a quote to the db.") bot.CommandFunc(del, "qdel", "qdel #<qID> -- Deletes a quote from the db.") bot.CommandFunc(del, "quote del", "quote del #<qID> -- Deletes a quote from the db.") bot.CommandFunc(del, "del quote", "del quote #<qID> -- Deletes a quote from the db.") bot.CommandFunc(fetch, "quote #", "quote #<qID> -- Displays quote <qID>.") bot.CommandFunc(lookup, "quote", "quote <regex> -- Displays quotes matching <regex>") }
func Init() { fc = factoids.Init() bot.HandleFunc(insert, "privmsg") bot.HandleFunc(lookup, "privmsg", "action") bot.PluginFunc(replaceIdentifiers) bot.CommandFunc(chance, "chance of that is", "chance -- Sets trigger chance of the last displayed factoid value.") bot.CommandFunc(forget, "delete that", "delete -- Forgets the last displayed factoid value.") bot.CommandFunc(forget, "forget that", "forget -- Forgets the last displayed factoid value.") bot.CommandFunc(info, "fact info", "fact info <key> -- Displays some stats about factoid <key>.") bot.CommandFunc(literal, "literal", "literal <key> -- Displays the factoid values stored for <key>.") bot.CommandFunc(replace, "replace that with", "replace -- Replaces the last displayed factoid value.") bot.CommandFunc(search, "fact search", "fact search <regexp> -- Searches for factoids matching <regexp>.") }