From 3de816f2c88a15266176cd9a102c108f0fe6853a Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 5 Feb 2020 20:53:37 +0800 Subject: [PATCH] add shops in config --- data/config.json | 4 +++- def.go | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/data/config.json b/data/config.json index 0452943..28ce300 100644 --- a/data/config.json +++ b/data/config.json @@ -30,6 +30,8 @@ "min_qty": 0, "max_qty": 10000 } - ] + ], + "shops": [ {"type": "armor", "link": "/ws_abcd"}, + {"type": "off_hand", "link": "/ws_0123"} ] } } \ No newline at end of file diff --git a/def.go b/def.go index 805f66d..23a78e9 100644 --- a/def.go +++ b/def.go @@ -45,6 +45,10 @@ type Config struct { Min int64 `json:"min_qty"` Max int64 `json:"max_qty"` } `json:"vault_limit"` + Shops []struct { + Type string `json:"type"` + Link string `json:"link"` + } `json:"shops"` } `json:"bot"` }