26 lines
589 B
Go
26 lines
589 B
Go
package main
|
|
|
|
import "encoding/json"
|
|
|
|
type Parser struct {
|
|
SevenTV string `json:"SevenTV"`
|
|
Bttv string `json:"BTTV"`
|
|
Ffz string `json:"FFZ"`
|
|
Chatterino string `json:"Chatterino"`
|
|
Chatty string `json:"Chatty"`
|
|
Homies string `json:"Homies"`
|
|
Ptv string `json:"PurpleTV"`
|
|
}
|
|
|
|
func parseAllBadges() {
|
|
stv := &SevenTv{}
|
|
stv.getBadges()
|
|
json, _ := json.Marshal(stv.Badges)
|
|
logger.Trace().Msg(string(json))
|
|
// bttv := &Bttv{}
|
|
// ffz := &FrankerFz{}
|
|
// chatterino := &Chatterino{}
|
|
// chatty := &Chatty{}
|
|
// homies := &Homies{}
|
|
// ptv := &PurpleTV{}
|
|
}
|