refactor: configs dir

This commit is contained in:
Anton
2023-12-04 23:57:03 +05:00
parent ad79565a93
commit 07b523cd4d
9 changed files with 19 additions and 17 deletions

View File

@@ -42,7 +42,7 @@ func main() {
port := flag.Int("port", 1313, "server port")
flag.Parse()
cfg, err := config.Read("config.json", "boxes.json", "commands.json")
cfg, err := config.Read("configs")
if err != nil {
logx.Log("missing config file")
os.Exit(1)