add config

This commit is contained in:
Andrey Belvedersky
2021-06-06 03:46:11 +03:00
parent 0aa4922105
commit f3175b8ce9
10 changed files with 97 additions and 433 deletions

View File

@@ -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)
}