Home Insurgency: Sandstorm Integrating Discord Server Notifications on Your Insurgency: Sandstorm Server

Integrating Discord Server Notifications on Your Insurgency: Sandstorm Server

Last updated on Feb 19, 2025

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

  1. Open your Discord server and navigate to the desired channel.

  2. Go to Channel Settings > Integrations > Webhooks.

  3. Click New Webhook, customize its name and avatar, then copy the webhook URL.

Discord webhook created and URL copied!


2️⃣ Uploading the Notification Script

  1. Log in to VolticHost Game Panel.

  2. Click on your Insurgency: Sandstorm server and navigate to the File Manager.

  3. Create a new file named discord_notify.sh in the server’s root directory.

  4. 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
    
  5. Replace YOUR_DISCORD_WEBHOOK_URL with your actual webhook URL, then click Save File and ensure the script is executable (e.g., run chmod +x discord_notify.sh).

Discord notification script uploaded and configured!


3️⃣ Integrating the Notification Script into Server Events

  1. Navigate to the Startup tab in VolticHost Game Panel.

  2. 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).

  3. Example command:

    +exec discord_notify.sh "Server has started"
    
  4. Click Save Changes to update your startup parameters.

Notification script integrated into server startup!


4️⃣ Testing and Verifying Discord Notifications

  1. Restart your Insurgency: Sandstorm server via the Console tab.

  2. Monitor your Discord channel for the notification message.

  3. 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.