mirror of
https://github.com/skidoodle/ncore-stats.git
synced 2025-02-15 05:09:14 +01:00
bara bra grejjor
This commit is contained in:
parent
2aa7b29b23
commit
8ea02ee188
5 changed files with 20 additions and 5 deletions
5
main.go
5
main.go
|
@ -25,7 +25,8 @@ type ProfileData struct {
|
|||
|
||||
var (
|
||||
profiles = map[string]string{}
|
||||
jsonFile = "data.json"
|
||||
jsonFile = "./data/data.json"
|
||||
profilesFile = "profiles.json"
|
||||
baseUrl = "https://ncore.pro/profile.php?id="
|
||||
nick string
|
||||
pass string
|
||||
|
@ -38,7 +39,7 @@ func init() {
|
|||
nick = os.Getenv("NICK")
|
||||
pass = os.Getenv("PASS")
|
||||
|
||||
file, err := os.Open("profiles.json")
|
||||
file, err := os.Open(profilesFile)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue