You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ConVar p2mm_discord_webhooks("p2mm_discord_webhooks", "0", FCVAR_NOTIFY, "Enable or disable webhooks been the P2:MM Server and Discord.", true, 0, true, 1, WebhookCheck);
107
-
ConVar p2mm_discord_webhooks_url("p2mm_discord_webhooks_url", "", FCVAR_HIDDEN, "Channel webhook URL to send messages to. Should be set in launcher, not here.");
106
+
ConVar p2mm_discord_webhooks("p2mm_discord_webhooks", "0", FCVAR_NOTIFY, "Enable or disable webhooks between the P2:MM Server and Discord.", true, 0, true, 1, WebhookCheck);
107
+
ConVar p2mm_discord_webhooks_url("p2mm_discord_webhooks_url", "", FCVAR_HIDDEN, "Channel webhook URL. Recommended to be set in launcher, not here.");
108
108
ConVar p2mm_discord_webhooks_defaultfooter("p2mm_discord_webhooks_defaultfooter", "1", FCVAR_NONE, "Enable or disable the default embed footer for webhooks.", true, 0, true, 1);
109
109
ConVar p2mm_discord_webhooks_customfooter("p2mm_discord_webhooks_customfooter", "", FCVAR_NONE, "Set a custom embed footer for webhook messages.");
110
110
111
-
// Parameters that are sent through to the Discord webhook
111
+
// Parameters that are sent through to the Discord webhook.
112
112
structWebHookParams
113
113
{
114
114
std::string title = "Unknown";
@@ -117,11 +117,12 @@ struct WebHookParams
117
117
std::string footer;
118
118
};
119
119
120
-
// Generates a footer with the player count with max allowed client count and also the current map name
120
+
// Generates a footer with the player count with max allowed client count and also the current map name.
121
121
static std::string DefaultFooter()
122
122
{
123
123
// g_pGlobals doesn't exist yet at certain situations, so return a blank string.
0 commit comments