Description
Sends nice Discord embeded messages when a new map record is set.
The messages will look like this:
Requirements
Note:
The stage record feature will only work with the version 1.0.5
or above of the main project.
Installation
- Grab the latest release from the release page and unzip it in your sourcemod folder.
- Restart the server or type
sm plugins load SurfTimer-discord
in the console to load the plugin.
- The config file will be automatically generated at
cfg/sourcemod/SurfTimer-discord.cfg
- In the config file, configure your Discord Webhook and your Steam API key (optional, you can get it here).
Configuration
- You can modify the phrases in addons/sourcemod/translations/SurfTimer-discord.phrases.txt.
- Once the plugin has been loaded, you can modify the cvars in cfg/sourcemod/SurfTimer-discord.cfg.
- To use Discord mentions, follow this tutorial to get the role's ID and use
<@&role_id>
in the .cfg file. You can use @here
and @everyone
normally.
- WARNING Discord no longer allows "everyone" and "here" as webhook names, nor the following substrings: "@", "#", ":", "```", "discord".
Usage
- You can use the
sm_ck_discordtest
command to test the messages.