// © 2019 the CatBase Authors under the WTFPL. See AUTHORS for the list of authors. package nerdepedia import ( "strings" "net/http" "bufio" "github.com/velour/catbase/bot" "github.com/velour/catbase/bot/msg" "github.com/velour/catbase/config" ) const ( prefix = "= 0 { p.bot.SendMessage(message.Channel, strings.TrimSuffix(strings.TrimPrefix(line, prefix), "\" />")) return true } } } return false } // Help responds to help requests. Every plugin must implement a help function. func (p *NerdepediaPlugin) Help(channel string, parts []string) { p.bot.SendMessage(channel, "star wars/trek stuff") } // Empty event handler because this plugin does not do anything on event recv func (p *NerdepediaPlugin) Event(kind string, message msg.Message) bool { return false } // Handler for bot's own messages func (p *NerdepediaPlugin) BotMessage(message msg.Message) bool { return false } // Register any web URLs desired func (p *NerdepediaPlugin) RegisterWeb() *string { return nil } func (p *NerdepediaPlugin) ReplyMessage(message msg.Message, identifier string) bool { return false }