forked from lnxjedi/gopherbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
68 lines (50 loc) · 2.05 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package main
import (
"github.com/lnxjedi/gopherbot/bot"
// NOTE: If compiling gopherbot yourself, you can comment out or remove
// most of the import lines below to shrink the binary or remove unwanted
// or unneeded funcationality. You'll need at least one connector for your
// bot to be useful, however.
// *** Included connectors
_ "github.com/lnxjedi/gopherbot/connectors/slack"
// NOTE: if you build with '-tags test', the terminal connector will also
// show emitted events.
_ "github.com/lnxjedi/gopherbot/connectors/terminal"
// *** Included brain implementations
_ "github.com/lnxjedi/gopherbot/brains/dynamodb"
_ "github.com/lnxjedi/gopherbot/brains/file"
// *** Included history implementations
_ "github.com/lnxjedi/gopherbot/history/file"
// Many included plugins already have 'Disabled: true', but you can also
// disable by adding that line to conf/plugins/<plugname>.yaml
// *** Included Elevator plugins
_ "github.com/lnxjedi/gopherbot/goplugins/duo"
_ "github.com/lnxjedi/gopherbot/goplugins/totp"
// *** Included Authorizer plugins
_ "github.com/lnxjedi/gopherbot/goplugins/groups"
// *** Included Go plugins, of varying quality
_ "github.com/lnxjedi/gopherbot/goplugins/help"
_ "github.com/lnxjedi/gopherbot/goplugins/knock"
_ "github.com/lnxjedi/gopherbot/goplugins/links"
_ "github.com/lnxjedi/gopherbot/goplugins/lists"
_ "github.com/lnxjedi/gopherbot/goplugins/meme"
_ "github.com/lnxjedi/gopherbot/goplugins/ping"
/* Enable profiling. You can shrink the binary by removing this, but if the
robot ever stops responding for any reason, it's handy for getting a
dump of all goroutines. Example usage:
$ go tool pprof http://localhost:8888/debug/pprof/goroutine
...
Entering interactive mode (type "help" for commands, "o" for options)
(pprof) list lnxjedi
Total: 11
ROUTINE ======================== github.com/lnxjedi/gopherbot/bot...
*/
_ "net/http/pprof"
)
var versionInfo = bot.VersionInfo{
Version: "v2.0.0-snapshot",
Commit: "(manual build)",
}
func main() {
bot.Start(versionInfo)
}