~kris/9p

glenda

90e940d5f6d1b9b2cf65194aa84b2d6253096ad7 — Sean Hinchee 8 years ago e62cb0b
beer update
3 files changed, 11 insertions(+), 1 deletions(-)

M TODO
M mux.go
M x/mux/misc.go
M TODO => TODO +1 -1
@@ 1,5 1,5 @@
Features
** Rework feed handling (don't cache feed in cfg? might be static not able to expand)
* Automated g!dump'ing of config file (backups?)
* g!sum acid(1)
* Support for acid(1) in g!man
* Search man blocks other than 9front's

M mux.go => mux.go +2 -0
@@ 34,5 34,7 @@ func init() {

	Router.Route("about", "General information about the bot.", Router.About)
	
	Router.Route("beer", ":beer:", Router.Beer)
	

}

M x/mux/misc.go => x/mux/misc.go +8 -0
@@ 49,5 49,13 @@ func (m *Mux) Dump(ds *discordgo.Session, dm *discordgo.Message, ctx *Context) {
	return
}

// Beer, dude.
func (m *Mux) Beer(ds *discordgo.Session, dm *discordgo.Message, ctx *Context) {
	resp := ""
	resp += ":beer:"
	resp += "\n"

	ds.ChannelMessageSend(dm.ChannelID, resp)

	return
}