add config
This commit is contained in:
12
cmd/main.go
12
cmd/main.go
@@ -2,10 +2,16 @@ package main
|
||||
|
||||
import (
|
||||
"git/ecom/jira-bot/pkg/bot"
|
||||
"git/ecom/jira-bot/pkg/message"
|
||||
"git/ecom/jira-bot/pkg/config"
|
||||
"git/ecom/jira-bot/pkg/events"
|
||||
"git/ecom/jira-bot/pkg/utils"
|
||||
)
|
||||
|
||||
func main() {
|
||||
message.Message()
|
||||
bot.JiraBot()
|
||||
cfg, err := config.GetConfig("settings")
|
||||
if err != nil {
|
||||
utils.Exit(err)
|
||||
}
|
||||
go events.Listen(cfg)
|
||||
bot.JiraBot(cfg)
|
||||
}
|
||||
|
Reference in New Issue
Block a user