Jump to content
Connor.

Discord Embed Builder for Arma 3

Recommended Posts

This server mod allows you to send discord webhook messages directly from your Arma 3 server.

It does both simple messages and full embeds.

 

I've had a personalized version for months now but I was looking around yesterday and couldn't find anything like this public so here you go 🙂

 

The kinds of things I've been using it for:

  • Publishing round stats at the end of a game
  • Pushing in game event alerts to discord
  • AntiCheat notifications so I know about sketchy people without needing to be in game

 

Github: https://github.com/ConnorAU/SQFDiscordEmbedBuilder

Discord: https://discord.gg/DMkxetD

 

 

  • Like 4
  • Thanks 2

Share this post


Link to post
Share on other sites

This is really interesting and may save some overhead for me. I've been using an EH to detect friendly fires and print to log while a discord bot scans the file. I would love a video on how you have been publishing round information if you find time.

Share this post


Link to post
Share on other sites
25 minutes ago, tanaka52 said:

This is really interesting and may save some overhead for me. I've been using an EH to detect friendly fires and print to log while a discord bot scans the file. I would love a video on how you have been publishing round information if you find time.

 

I did round stats for Capture the Flag which used a different setup, most of the embed settings were hardcoded into the extension but in this mod it would have been something like this:

 

Config:

Spoiler

class RoundEnd_WEST {
    webhook="webhook url";
    username="Capture The Flag";

    class Embeds {
        class Embed1: CfgDiscordEmbedTemplate {
            title="%1";
            description="Blufor won the round!";
            color="0000FF";

            class Footer {
                text="Round ID: %2";
            };

            fields[]={
                {"Map","%3",1},
                {"Round Legnth","%4",1},
                {"Blufor Captures","%5",1},
                {"Opfor Captures","%6",1}
            };
        };
    };
};
class RoundEnd_EAST: RoundEnd_WEST {
    class Embeds: Embeds {
        class Embed1: Embed1 {
            description="Opfor won the round!";
            color="FF0000";

            class Footer: Footer {}
        };
    };
};

 

 

SQF:

Spoiler

[
    "RoundEnd_"+str _winningSide,
    [
        serverName,
        myRoundID,
        worldName,
        [time-myRoundStartTime,"HH:MM:SS"] call BIS_fnc_secondsToString,
        myBluforCaptures,
        myOpforCaptures
    ]
] call DiscordEmbedBuilder_fnc_send;

 

 

Share this post


Link to post
Share on other sites

nice work, keep it up

  • Like 1

Share this post


Link to post
Share on other sites

v1.1 Update:

  • Added raw SQF embed building DiscordEmbedBuilder_fnc_buildSqf.
  • Moved config building to DiscordEmbedBuilder_fnc_buildCfg.
  • Moved webhook urls to CfgDiscordEmbedWebhooks. This allows you to paste a url once and use it on multiple config templates and SQF builds.
  • Updated readme with new instructions and raw SQF information.
  • New youtube preview https://www.youtube.com/watch?v=cEWo6Anlliw.
  • Like 3

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×