jira-bot/cmd/main.go

18 lines
287 B
Go
Raw Normal View History

2021-06-03 01:59:32 +03:00
package main
2021-06-03 09:30:25 +03:00
import (
"git/ecom/jira-bot/pkg/bot"
2021-06-06 03:46:11 +03:00
"git/ecom/jira-bot/pkg/config"
"git/ecom/jira-bot/pkg/events"
"git/ecom/jira-bot/pkg/utils"
2021-06-03 09:30:25 +03:00
)
2021-06-03 01:59:32 +03:00
func main() {
2021-06-06 03:46:11 +03:00
cfg, err := config.GetConfig("settings")
if err != nil {
utils.Exit(err)
}
go events.Listen(cfg)
bot.JiraBot(cfg)
2021-06-03 01:59:32 +03:00
}