Skip to content

Commit 758915b

Browse files
committed
remove enforced avatar and username
1 parent 8880677 commit 758915b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

main.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import (
1313
"github.com/rumblefrog/go-a2s"
1414
)
1515

16-
const WEBHOOK_USERNAME = "RotTracker"
17-
const WEBHOOK_AVATAR_URL = "https://cdn.fastly.steamstatic.com/steamcommunity/public/images/apps/2773280/b1eeb415c1b44677b667de93549594d313e78a8b.jpg"
1816
const MASTER_URL = "https://content.aneurismiv.com/masterlist"
1917

2018
// udpClients["0.0.0.0:7777"] = *a2s.Client
@@ -150,10 +148,8 @@ func send_message_to_discord(ipAddr string, region string, oldServerName string,
150148
}
151149
}
152150
],
153-
"components": [],
154-
"username": "%v",
155-
"avatar_url": "%v"
156-
}`, region, oldServerName, newServerName, playerCount, ipAddr, WEBHOOK_USERNAME, WEBHOOK_AVATAR_URL)
151+
"components": []
152+
}`, region, oldServerName, newServerName, playerCount, ipAddr)
157153
bodyReader := bytes.NewReader(jsonBody)
158154
resp, err := http.Post(myWebhookURL, "application/json", bodyReader)
159155
if err != nil {

0 commit comments

Comments
 (0)