Keep your community informed in real-time by integrating Discord notifications that relay server events, announcements, and status updates directly to your Discord channel.
📌 Prerequisites
-
An Insurgency: Sandstorm server purchased at VolticHost.com
-
Access to VolticHost Game Panel
-
A Discord server with a configured webhook URL
-
Basic knowledge of scripting and file management
1️⃣ Creating a Discord Webhook
-
Open your Discord server and navigate to the desired channel.
-
Go to Channel Settings > Integrations > Webhooks.
-
Click New Webhook, customize its name and avatar, then copy the webhook URL.
✅ Discord webhook created and URL copied!
2️⃣ Uploading the Notification Script
-
Log in to VolticHost Game Panel.
-
Click on your Insurgency: Sandstorm server and navigate to the File Manager.
-
Create a new file named
discord_notify.sh
in the server’s root directory. -
Insert a script similar to the following:
#!/bin/bash WEBHOOK_URL="YOUR_DISCORD_WEBHOOK_URL" MESSAGE="Server Event: $1" curl -H "Content-Type: application/json" -X POST -d "{\"content\": \"$MESSAGE\"}" $WEBHOOK_URL
-
Replace
YOUR_DISCORD_WEBHOOK_URL
with your actual webhook URL, then click Save File and ensure the script is executable (e.g., runchmod +x discord_notify.sh
).
✅ Discord notification script uploaded and configured!
3️⃣ Integrating the Notification Script into Server Events
-
Navigate to the Startup tab in VolticHost Game Panel.
-
Append the startup command or integrate the script into event hooks so that it triggers on specific server events (e.g., server start, map change, or player join).
-
Example command:
+exec discord_notify.sh "Server has started"
-
Click Save Changes to update your startup parameters.
✅ Notification script integrated into server startup!
4️⃣ Testing and Verifying Discord Notifications
-
Restart your Insurgency: Sandstorm server via the Console tab.
-
Monitor your Discord channel for the notification message.
-
Trigger additional events (if configured) to ensure notifications are sent accurately.
✅ Discord notifications verified and working!
🎉 Conclusion
You've successfully integrated Discord server notifications on your Insurgency: Sandstorm server using VolticHost Game Panel, ensuring your community stays updated on key server events in real-time. 🚀
For additional assistance, contact VolticHost Support.