New webhook was created, and inserted into the config file. Is there something else I need to do with the cs?
Also seems like the cs isnt pulling from the config file?
New webhook was created, and inserted into the config file. Is there something else I need to do with the cs?
Also seems like the cs isnt pulling from the config file?
Update: Reports are being sent to discord, but only player owned stashes, and the Reveal Method: "Killed by placing a building block on top of it"
have you got "Stash Report Filter": set to 2?
I do. Still can't get anything to push to discord. Looks like my "update" above only temporarily worked for a few mintues.
automatedstashtraps.ignore permission, it will prevent violations from being triggered. Otherwise, try using the trap.draw command to find an automated trap and reveal it, then observe if a report is sent to both the console and chat. Thanks Dana. I'm not getting any errors in console. I've both had a friend with no permissons open the stash traps, as well as removing my own permissions."Post to Discord" is set to true. I've also tried troubleshooting by creating a new webhook and updating the config, and still nothing.
KaramelKhunt
Thanks Dana. I'm not getting any errors in console. I've both had a friend with no permissons open the stash traps, as well as removing my own permissions."Post to Discord" is set to true. I've also tried troubleshooting by creating a new webhook and updating the config, and still nothing.
Would you mind showing us your config? (remove the webhook URL of course but seeing the rest of the config might help to find the problem)
{
"Version": "1.5.0",
"Spawn Point": {
"Maximum Attempts To Find Spawn Points": 1500,
"Safe Area Radius": 3.0,
"Entity Detection Radius": 25.0,
"Player Detection Radius": 25.0
},
"Automated Trap": {
"Maximum Traps To Spawn": 50,
"Destroy Revealed Trap After Minutes": 2,
"Replace Revealed Trap": true,
"Dummy Sleeping Bag": {
"Spawn Along": true,
"Spawn Proximity To Stash": 0.9,
"Spawn Chance": 50,
"Randomized Skin Chance": 40,
"Randomized Nice Name Chance": 60
}
},
"Violation": {
"Reset On Wipe": true,
"Can Teammate Ignore": false,
"Can Clanmate Ignore": false
},
"Moderation": {
"Automatic Ban": false,
"Violations Tolerance": 3,
"Ban Delay Seconds": 60,
"Ban Reason": "Cheat Detected!"
},
"Notification": {
"Prefix": "<color=#F2C94C>Automated Stash Trap</color>:",
"Enable Console Report": true,
"Stash Report Filter": 2
},
"Discord": {
"Post Into Discord": true,
"Webhook Url": "Redacted",
"Report Interval": 60.0,
"Message": "Cheater, cheater, pumpkin eater! Looks like someone's been caught breaking the rules!",
"Embed Color": "#FFFFFF",
"Embed Title": "A cheater has been spotted",
"Embed Footer": "",
"Embed Fields": [
{
"name": "Player Name",
"value": "$Player.Name",
"inline": true
},
{
"name": "Id",
"value": "$Player.Id",
"inline": true
},
{
"name": "Violations Count",
"value": "$Player.Violations",
"inline": true
},
{
"name": "Revealed Stash Type",
"value": "$Stash.Type",
"inline": true
},
{
"name": "Stash Id",
"value": "$Stash.Id",
"inline": true
},
{
"name": "Grid",
"value": "$Stash.Position.Grid",
"inline": true
},
{
"name": "Reveal Method",
"value": "$Stash.Reveal.Method",
"inline": true
},
{
"name": "Stash Owner Name",
"value": "$Stash.Owner.Name",
"inline": true
},
{
"name": "Stash Owner Id",
"value": "$Stash.Owner.Id",
"inline": true
},
{
"name": "Team Info",
"value": "$Player.Team",
"inline": true
},
{
"name": "Player Connection Time",
"value": "$Player.Connection.Time",
"inline": true
},
{
"name": "Server",
"value": "$Server.Name $Server.Address",
"inline": true
}
]
},
"Stash Loot": {
"Minimum Loot Spawn Slots": 1,
"Maximum Loot Spawn Slots": 6,
"Spawn Chance As Blueprint": 10,
"Spawn Chance With Skin": 50,
"Spawn Chance As Damaged": 30,
"Minimum Condition Loss": 5.0,
"Maximum Condition Loss": 95.0,
"Spawn Chance As Repaired": 15,
"Spawn Chance As Broken": 5,
"Loot Table": [
{
"Short Name": "scrap",
"Minimum Spawn Amount": 25,
"Maximum Spawn Amount": 125
},
{
"Short Name": "metal.refined",
"Minimum Spawn Amount": 15,
"Maximum Spawn Amount": 40
},
{
"Short Name": "cloth",
"Minimum Spawn Amount": 60,
"Maximum Spawn Amount": 200
},
{
"Short Name": "cctv.camera",
"Minimum Spawn Amount": 1,
"Maximum Spawn Amount": 2
},
{
"Short Name": "riflebody",
"Minimum Spawn Amount": 1,
"Maximum Spawn Amount": 3
},
{
"Short Name": "techparts",
"Minimum Spawn Amount": 1,
"Maximum Spawn Amount": 6
}
]
}
}
welpenhundWould you mind showing us your config? (remove the webhook URL of course but seeing the rest of the config might help to find the problem)
@KaramelKhunt Invalid webhook
I think he removed the webhook url on purpose?
Yeah, I removed the webhook on purpose when I copypasta'd here.
I used to have the AutoStashTraps plugin and it worked great. Really not sure why I'm having so much trouble with the discord integration with this one.
KaramelKhunt
Yeah, I removed the webhook on purpose when I copypasta'd here.
I used to have the AutoStashTraps plugin and it worked great. Really not sure why I'm having so much trouble with the discord integration with this one.
The ReportInterval option is set to 60 seconds, which means reports will be sent to Discord after a minute. Have you waited for that time to pass? Additionally, have you checked if reports are being sent to the console and chat? If they are, it's likely an issue with your Discord setup, most likely with the webhook.
They are being sent fine to chat and console. Initially started with the same webhook from AutoStashTraps, then have gone through creating and replacing the webhook at least a dozen times.
Merged post
Aha finally got an error:
[Automated Stash Traps] A cheater has been spotted
{
Player: Karamel_Khunt
Player Id: Purposely Redacted
Stash Position: P11
Stash Type: Automated trap
}
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
[Automated Stash Traps] Error: Error getting response stream (ReadDone1): ReceiveFailure
Unable to read data from the transport connection: Connection reset by peer.
Connection reset by peer
Additionally, Just went through and tested all my webhooks on https://toolscord.com/webhook and https://disforge.com/tool/webhook-tester#
Looks like webhooks are working properly... Maybe there is some other issue going on with my host?
I'm not entirely sure, but it appears to be network-related. The problem might not necessarily lie with the webhook itself, but rather with the connection between your server and the Discord API
im works fine