~kris/9p

glenda

a5acd73d06b78f4474cf548caf57d01b9954d62a — Henesy 5 years ago b38a954
add davros fortune ;; ignore logs
3 files changed, 4 insertions(+), 2 deletions(-)

M .gitignore
M mux.go
M x/mux/fortunes.go
M .gitignore => .gitignore +1 -1
@@ 1,3 1,3 @@
glenda
cfg/

*.log

M mux.go => mux.go +1 -1
@@ 32,7 32,7 @@ func init() {

	Router.Route("sig", "Search for function definitions in the Plan 9 manual pages (From 9front for now).", Router.Sig)

	Router.Route("fortune", "Display fortunes. Bonus files are (theo troll rsc terry rob ken henesy).", Router.Fortunes)
	Router.Route("fortune", "Display fortunes. Bonus files are (theo troll rsc terry rob ken henesy davros).", Router.Fortunes)
	
	Router.Route("bullshit", "Print logical statements with sound grounding.", Router.Bullshit)
	

M x/mux/fortunes.go => x/mux/fortunes.go +2 -0
@@ 29,6 29,8 @@ func (m *Mux) Fortunes(ds *discordgo.Session, dm *discordgo.Message, ctx *Contex
		f = "ken"
	} else if strings.Contains(dm.Content, "henesy") {
		f = "henesy"
	} else if strings.Contains(dm.Content, "davros") {
		f = "davros"
	} else {
		f = "../sys/games/lib/fortunes"
	}