add shops in config

This commit is contained in:
shoopea 2020-02-05 20:53:37 +08:00
parent fde45dcf2e
commit 3de816f2c8
2 changed files with 7 additions and 1 deletions

View File

@ -30,6 +30,8 @@
"min_qty": 0, "min_qty": 0,
"max_qty": 10000 "max_qty": 10000
} }
] ],
"shops": [ {"type": "armor", "link": "/ws_abcd"},
{"type": "off_hand", "link": "/ws_0123"} ]
} }
} }

4
def.go
View File

@ -45,6 +45,10 @@ type Config struct {
Min int64 `json:"min_qty"` Min int64 `json:"min_qty"`
Max int64 `json:"max_qty"` Max int64 `json:"max_qty"`
} `json:"vault_limit"` } `json:"vault_limit"`
Shops []struct {
Type string `json:"type"`
Link string `json:"link"`
} `json:"shops"`
} `json:"bot"` } `json:"bot"`
} }