forked from ro0mquy/MettBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
45 lines (40 loc) · 1.18 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package main
import (
"./ircclient"
"./plugins"
"log"
"math/rand"
"time"
)
func main() {
rand.Seed(time.Now().Unix())
log.SetFlags(log.Lshortfile)
s := ircclient.NewIRCClient("mettbot.cfg")
s.RegisterPlugin(new(plugins.KexecPlugin))
s.RegisterPlugin(new(plugins.DecisionPlugin))
s.RegisterPlugin(new(plugins.DicePlugin))
s.RegisterPlugin(new(plugins.ListPlugins))
//s.RegisterPlugin(new(plugins.LoggerPlugin))
s.RegisterPlugin(new(plugins.QuitHandler))
s.RegisterPlugin(new(plugins.ChannelsPlugin))
s.RegisterPlugin(new(plugins.AdminPlugin))
s.RegisterPlugin(new(plugins.TwitterPlugin))
s.RegisterPlugin(new(plugins.DongPlugin))
s.RegisterPlugin(new(plugins.BadewannePlugin))
s.RegisterPlugin(new(plugins.TopicDiffPlugin))
//s.RegisterPlugin(new(plugins.MumblePlugin))
s.RegisterPlugin(new(plugins.QuoteDBPlugin))
s.RegisterPlugin(new(plugins.MettDBPlugin))
s.RegisterPlugin(new(plugins.XKCDPlugin))
//s.RegisterPlugin(new(plugins.AltPlugin))
s.RegisterPlugin(new(plugins.TemperaturPlugin))
//s.RegisterPlugin(new(plugins.CorrectionPlugin))
err := s.Connect()
if err != nil {
log.Fatal(err.Error())
}
err = s.InputLoop()
if err != nil {
log.Fatal(err.Error())
}
}