mirror of https://github.com/velour/catbase.git
Reduced the messages on the console
This commit is contained in:
parent
9c721a0f58
commit
3e7f8d4248
|
@ -34,5 +34,8 @@ func Readconfig(version, cfile string) *Config {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
c.Version = version
|
c.Version = version
|
||||||
|
|
||||||
|
fmt.Printf("godeepintir version %s running.\n")
|
||||||
|
|
||||||
return &c
|
return &c
|
||||||
}
|
}
|
||||||
|
|
2
main.go
2
main.go
|
@ -21,7 +21,6 @@ func main() {
|
||||||
flag.Parse() // parses the logging flags.
|
flag.Parse() // parses the logging flags.
|
||||||
|
|
||||||
config := config.Readconfig(Version, *cfile)
|
config := config.Readconfig(Version, *cfile)
|
||||||
fmt.Println(config)
|
|
||||||
|
|
||||||
c := irc.SimpleClient(config.Nick)
|
c := irc.SimpleClient(config.Nick)
|
||||||
// Optionally, enable SSL
|
// Optionally, enable SSL
|
||||||
|
@ -33,6 +32,7 @@ func main() {
|
||||||
func(conn *irc.Conn, line *irc.Line) {
|
func(conn *irc.Conn, line *irc.Line) {
|
||||||
for _, channel := range config.Channels {
|
for _, channel := range config.Channels {
|
||||||
conn.Join(channel)
|
conn.Join(channel)
|
||||||
|
fmt.Printf("Now talking in %s.\n", channel)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// And a signal on disconnect
|
// And a signal on disconnect
|
||||||
|
|
|
@ -5,10 +5,10 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"labix.org/v2/mgo"
|
"labix.org/v2/mgo"
|
||||||
"labix.org/v2/mgo/bson"
|
"labix.org/v2/mgo/bson"
|
||||||
|
"math/rand"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"math/rand"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// This is a skeleton plugin to serve as an example and quick copy/paste for new plugins.
|
// This is a skeleton plugin to serve as an example and quick copy/paste for new plugins.
|
||||||
|
|
|
@ -94,4 +94,3 @@ func (fp FalsePlugin) LoadData() {
|
||||||
func (p *FalsePlugin) Event(kind string, message bot.Message) bool {
|
func (p *FalsePlugin) Event(kind string, message bot.Message) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ package plugins
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bitbucket.org/phlyingpenguin/godeepintir/bot"
|
"bitbucket.org/phlyingpenguin/godeepintir/bot"
|
||||||
"strings"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TalkerPlugin struct {
|
type TalkerPlugin struct {
|
||||||
|
|
Loading…
Reference in New Issue