Adapted bot to new StarCity website
This commit is contained in:
parent
10af0ea3c8
commit
b965115cb3
3 changed files with 59 additions and 47 deletions
|
|
@ -22,3 +22,20 @@ func (c *Card) getName() string {
|
|||
}
|
||||
return c.Name
|
||||
}
|
||||
|
||||
type ScgResponse struct {
|
||||
Response ScgResponseContainer `json:"response"`
|
||||
}
|
||||
|
||||
type ScgResponseContainer struct {
|
||||
Data []ScgConditionContainer `json:"data"`
|
||||
}
|
||||
|
||||
type ScgConditionContainer struct {
|
||||
Price float64 `json:"price"`
|
||||
OptionValues []ScgCondition `json:"option_values"`
|
||||
}
|
||||
|
||||
type ScgCondition struct {
|
||||
Label string `json:"label"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue