Merge pull request #124 from velour/nerdepeida

Kids gonna like dune
This commit is contained in:
Scott Kiesel 2019-01-19 08:45:40 -05:00 committed by GitHub
commit 76c93ded5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -44,6 +44,8 @@ func (p *NerdepediaPlugin) Message(message msg.Message) bool {
query = "http://starwars.wikia.com/wiki/Special:Random" query = "http://starwars.wikia.com/wiki/Special:Random"
} else if lowerCase == "beam me up scotty" || lowerCase == "live long and prosper" { } else if lowerCase == "beam me up scotty" || lowerCase == "live long and prosper" {
query = "http://memory-alpha.wikia.com/wiki/Special:Random" query = "http://memory-alpha.wikia.com/wiki/Special:Random"
} else if lowerCase == "bless the maker" || lowerCase == "i must not fear" {
query = "http://dune.wikia.com/wiki/Special:Random"
} }
if query != "" { if query != "" {
@ -82,7 +84,7 @@ func (p *NerdepediaPlugin) Message(message msg.Message) bool {
// Help responds to help requests. Every plugin must implement a help function. // Help responds to help requests. Every plugin must implement a help function.
func (p *NerdepediaPlugin) Help(channel string, parts []string) { func (p *NerdepediaPlugin) Help(channel string, parts []string) {
p.bot.SendMessage(channel, "star wars/trek stuff") p.bot.SendMessage(channel, "nerd stuff")
} }
// Empty event handler because this plugin does not do anything on event recv // Empty event handler because this plugin does not do anything on event recv