This commit is contained in:
shoopea 2020-01-14 09:22:06 +08:00
parent 747df10c66
commit 6ca15389b1

24
main.go
View File

@ -21,23 +21,23 @@ import (
type Config struct {
Telegram struct {
URL string
Token string
}
URL string `json:"url"`
Token string `json:"token"`
} `json:"telegram"`
SQL struct {
Driver string
Type string
Address string
Username string
Password string
Database string
}
Driver string `json:"driver"`
Type string `json:"type"`
Address string `json:"address"`
Username string `json:"username"`
Password string `json:"password"`
Database string `json:"database"`
} `json:"sql"`
Rabbit struct {
User string
Password string
Host string
Path string
}
} `json:"rabbit"`
Bot struct {
Admin int64
Guildname string
@ -45,7 +45,7 @@ type Config struct {
Mainchat int64
Depositchat int64
Reportchat int64
}
} `json:"bot"`
}
var (