Skip to content

maxijabase/sp-discordrelay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sp-discordrelay

Discord ⇄ Server interaction for the Source Engine

Installation

Place discordrelay.smx inside of /addons/sourcemod/plugins and update convars in /cfg/sourcemod/discordrelay.cfg after running the plugin.

Dependencies

*Note - If you plan to send messages/requests to the server from discord ensure you have Message Intents enabled in the app dashboard. unknown

Configuration

discrelay_steamapikey

This will be your steam API key which you can find at https://steamcommunity.com/dev/apikey. The key is used to grab the client's steam avatar.

discrelay_discordbottoken

Your discord bot token found/created by going to https://discord.com/developers/applications, creating an application, creating a bot, and copying the bot token. You do not need the bot to be running, just having it in your server will work.

discrelay_discordwebhook

Set this to your Discord channel's webhook url. You can create one by going to your Discord server, entering a text channel's settings, then in integrations create a webhook and copy the url.

discrelay_discordserverid

Enable Developer Mode in Discord, right click on the server name in the top left and click Copy ID. Required for communication between Discord and Source.

discrelay_channelid

Enable Developer Mode in Discord, right click on the channel name and click Copy ID. This is the channel messages will appear in.

discrelay_servertodiscord

Enable to allow messages sent in the server to be sent through discord via webhook.

discrelay_discordtoserver

Enable to allow messages sent in discord to be sent to the server.

discrelay_servertodiscordavatars

Change avatar in messages sent to Discord to the client's Steam avatar. Requires a valid Steam API key.

discrelay_connectmessage

Send client connection messages to Discord.

discrelay_disconnectmessage

Send client disconnection messages to Discord.

discrelay_mapchangemessage

Send map change messages to Discord.

discrelay_message

Enable to allow client messages in the server to be sent to Discord. This is any message thats not a command, only exception is any ! command which can be hidden by enabling discrelay_hideexclammessage.

discrelay_hideexclammessage

Hides any message that begins with ! or /, discrelay_message needs to be enabled for this to work.

discrelay_msg_textcol & discrelay_msg_varcol

The colors used for the message that will be sent to the server when doing discord -> server. The plugin uses morecolors.inc to supply the colors, so when setting the cvar make sure to set it like {red} for example. Depending on the game you are using different options to set the color can be chosen such as using hex (more information here https://forums.alliedmods.net/showthread.php?t=247770).

discrelay_printsbppbans

Print bans, if SBPP is installed on the server.

discrelay_printsbppcomms

Print gags, mutes, and silences, if SBPP is installed on the server.

discrelay_sbppavatar

URL to an image. Used to change the avatar of the SBPP messages.

discrelay_rcon_enabled

Enable RCON functionality.

Warning to server owners: only let people you trust have access to the RCON channel; all messages sent in this channel is considered to be a command.

discrelay_rcon_channelid

Discord channel ID for where RCON commands should be sent.

discrelay_rcon_printreponse

Prints server response to the command.

discrelay_rcon_webhook

Webhook for RCON reponse.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • SourcePawn 100.0%