bara bra grejjor

This commit is contained in:
skidoodle 2024-10-10 17:07:08 +02:00
parent 2aa7b29b23
commit 8ea02ee188
Signed by: albert
GPG key ID: A06E3070D7D55BF2
5 changed files with 20 additions and 5 deletions

View file

@ -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)
}