Skip to content

A Discord notification plugin for SurfTimer with some SteamAPI integration

Notifications You must be signed in to change notification settings

surftimer/SurfTimer-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SurfTimer-discord

Discord notification plugin for SurfTimer with some SteamAPI integration.

Description

Sends nice Discord embeded messages when a new map record is set. The messages will look like this:

Preview

Requirements

Note:

The stage record feature will only work with the version 1.0.5 or above of the main project.

Installation

  1. Grab the latest release from the release page and unzip it in your sourcemod folder.
  2. Restart the server or type sm plugins load SurfTimer-discord in the console to load the plugin.
  3. The config file will be automatically generated at cfg/sourcemod/SurfTimer-discord.cfg
  4. 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.