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