From a5acd73d06b78f4474cf548caf57d01b9954d62a Mon Sep 17 00:00:00 2001 From: Henesy Date: Sun, 15 Nov 2020 00:57:58 +0000 Subject: [PATCH] add davros fortune ;; ignore logs --- .gitignore | 2 +- mux.go | 2 +- x/mux/fortunes.go | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 99d876a119f81d0f2e047f67625154fed0954e8f..dc9192c42f2ae2ce1ecdc1919ecdf8755b863bac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ glenda cfg/ - +*.log diff --git a/mux.go b/mux.go index d6b5edc13e78d6b7644e3b2ee97c208203c433f9..4cf802dbb869e3e3a587bd08df0546cc350a8721 100644 --- a/mux.go +++ b/mux.go @@ -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) diff --git a/x/mux/fortunes.go b/x/mux/fortunes.go index 12381fb38b734b6be77243c5c04d9ae1c6231173..4afb4ecbd9bf7a02701c84254bda303a000ff1e6 100644 --- a/x/mux/fortunes.go +++ b/x/mux/fortunes.go @@ -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" }