From dfcbec8ec9e41727d3fd24259f0a699f10b08620 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 6 Sep 2017 00:56:54 +0200 Subject: ... --- theo.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/theo.go b/theo.go index 6b455d0..09325da 100644 --- a/theo.go +++ b/theo.go @@ -11,8 +11,8 @@ import ( "time" ) -// Talk contains known quotes -var Talk = []string{ +// Quotes from Theo +var Quotes = []string{ `Write more code.`, `Make more commits.`, `That's because you have been slacking.`, @@ -131,10 +131,5 @@ var Talk = []string{ // Random quote func Random() string { rand.Seed(time.Now().UnixNano()) - return Talk[rand.Intn(len(Talk))] -} - -// Quote for backward compatibility, use Random instead -func Quote() string { - return Random() + return Quotes[rand.Intn(len(Quotes))] } -- cgit v1.2.3