mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-22 00:30:36 +08:00
feat!: (WIP) switched back to using config files config storages because the conversation handling is shit
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package bootstrap
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/krau/SaveAny-Bot/bot"
|
||||
"github.com/krau/SaveAny-Bot/common"
|
||||
"github.com/krau/SaveAny-Bot/config"
|
||||
@@ -9,7 +12,10 @@ import (
|
||||
)
|
||||
|
||||
func InitAll() {
|
||||
config.Init()
|
||||
if err := config.Init(); err != nil {
|
||||
fmt.Println("Failed to init config: ", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
logger.InitLogger()
|
||||
logger.L.Info("Starting SaveAny-Bot...")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user