| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- using Robust.Shared.Configuration;
- namespace Content.Shared.CCVar;
- public sealed partial class CCVars
- {
- /// <summary>
- /// The role that will get mentioned if a new SOS ahelp comes in.
- /// </summary>
- public static readonly CVarDef<string> DiscordAhelpMention =
- CVarDef.Create("discord.on_call_ping", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL);
- /// <summary>
- /// URL of the discord webhook to relay unanswered ahelp messages.
- /// </summary>
- public static readonly CVarDef<string> DiscordOnCallWebhook =
- CVarDef.Create("discord.on_call_webhook", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL);
- /// <summary>
- /// URL of the Discord webhook which will relay all ahelp messages.
- /// </summary>
- public static readonly CVarDef<string> DiscordAHelpWebhook =
- CVarDef.Create("discord.ahelp_webhook", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL);
- /// <summary>
- /// The server icon to use in the Discord ahelp embed footer.
- /// Valid values are specified at https://discord.com/developers/docs/resources/channel#embed-object-embed-footer-structure.
- /// </summary>
- public static readonly CVarDef<string> DiscordAHelpFooterIcon =
- CVarDef.Create("discord.ahelp_footer_icon", string.Empty, CVar.SERVERONLY);
- /// <summary>
- /// The avatar to use for the webhook. Should be an URL.
- /// </summary>
- public static readonly CVarDef<string> DiscordAHelpAvatar =
- CVarDef.Create("discord.ahelp_avatar", string.Empty, CVar.SERVERONLY);
- /// <summary>
- /// URL of the Discord webhook which will relay all custom votes. If left empty, disables the webhook.
- /// </summary>
- public static readonly CVarDef<string> DiscordVoteWebhook =
- CVarDef.Create("discord.vote_webhook", string.Empty, CVar.SERVERONLY);
- /// <summary>
- /// URL of the Discord webhook which will relay all votekick votes. If left empty, disables the webhook.
- /// </summary>
- public static readonly CVarDef<string> DiscordVotekickWebhook =
- CVarDef.Create("discord.votekick_webhook", string.Empty, CVar.SERVERONLY);
- /// <summary>
- /// URL of the Discord webhook which will relay round restart messages.
- /// </summary>
- public static readonly CVarDef<string> DiscordRoundUpdateWebhook =
- CVarDef.Create("discord.round_update_webhook", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL);
- /// <summary>
- /// Role id for the Discord webhook to ping when the round ends.
- /// </summary>
- public static readonly CVarDef<string> DiscordRoundEndRoleWebhook =
- CVarDef.Create("discord.round_end_role", string.Empty, CVar.SERVERONLY);
- /// <summary>
- /// The token used to authenticate with Discord. For the Bot to function set: discord.token, discord.guild_id, and discord.prefix.
- /// If this is empty, the bot will not connect.
- /// </summary>
- public static readonly CVarDef<string> DiscordToken =
- CVarDef.Create("discord.token", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL);
- /// <summary>
- /// The Discord guild ID to use for commands as well as for several other features.
- /// If this is empty, the bot will not connect.
- /// </summary>
- public static readonly CVarDef<string> DiscordGuildId =
- CVarDef.Create("discord.guild_id", string.Empty, CVar.SERVERONLY);
- /// <summary>
- /// Prefix used for commands for the Discord bot.
- /// If this is empty, the bot will not connect.
- /// </summary>
- public static readonly CVarDef<string> DiscordPrefix =
- CVarDef.Create("discord.prefix", "!", CVar.SERVERONLY);
- /// <summary>
- /// URL of the Discord webhook which will relay watchlist connection notifications. If left empty, disables the webhook.
- /// </summary>
- public static readonly CVarDef<string> DiscordWatchlistConnectionWebhook =
- CVarDef.Create("discord.watchlist_connection_webhook", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL);
- /// <summary>
- /// How long to buffer watchlist connections for, in seconds.
- /// All connections within this amount of time from the first one will be batched and sent as a single
- /// Discord notification. If zero, always sends a separate notification for each connection (not recommended).
- /// </summary>
- public static readonly CVarDef<float> DiscordWatchlistConnectionBufferTime =
- CVarDef.Create("discord.watchlist_connection_buffer_time", 5f, CVar.SERVERONLY);
- }
|