From 377de90c3134e594f6bf6c51ef272de35fbbd00f Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Tue, 7 May 2013 23:17:25 -0400 Subject: [PATCH] Fixes #19: Removing logging statements. --- plugins/counter.go | 8 +------- plugins/remember.go | 11 ----------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/plugins/counter.go b/plugins/counter.go index 96c7504..566e808 100644 --- a/plugins/counter.go +++ b/plugins/counter.go @@ -2,14 +2,12 @@ package plugins import ( "fmt" + "github.com/chrissexton/alepale/bot" "labix.org/v2/mgo" "labix.org/v2/mgo/bson" - "log" "strings" ) -import "github.com/chrissexton/alepale/bot" - // This is a counter plugin to count arbitrary things. type CounterPlugin struct { @@ -41,8 +39,6 @@ func (p *CounterPlugin) Message(message bot.Message) bool { channel := message.Channel parts := strings.Split(message.Body, " ") - log.Println("++Message:", nick, channel, parts) - if len(parts) == 0 { return false } @@ -131,8 +127,6 @@ func (p *CounterPlugin) Message(message bot.Message) bool { itemName = nameParts[1] } - log.Println("++:", subject, itemName) - if strings.HasSuffix(parts[0], "++") { // ++ those fuckers item := p.update(subject, itemName, 1) diff --git a/plugins/remember.go b/plugins/remember.go index 6250c87..0dfd8d4 100644 --- a/plugins/remember.go +++ b/plugins/remember.go @@ -5,7 +5,6 @@ import ( "github.com/chrissexton/alepale/bot" "labix.org/v2/mgo" "labix.org/v2/mgo/bson" - "log" "math/rand" "strings" "time" @@ -178,16 +177,6 @@ func (p *RememberPlugin) Event(kind string, message bot.Message) bool { // Record what the bot says in the log func (p *RememberPlugin) BotMessage(message bot.Message) bool { - log.Printf("Recieved: %+v\n", message) p.Log[message.Channel] = append(p.Log[message.Channel], message) - - for ch, _ := range p.Log { - log.Printf("Channel: %+v\n", ch) - for _, msg := range p.Log[ch] { - log.Println(msg) - } - } - log.Printf("Log:\n%+v\n", p.Log) - return false }