Forward your server's chat to your DIscord server using Webhooks.
Psystec's Discord: discord. /EyRgFdA
Features
- Global Chat forward.
- Team Chat forward.
- Notifies when a player connects or disconnects.
- Chat format can be customized.
- You can Enable/Disable Discord metions in Rust chat.
- Can configure the discord chat to show the players steam icon.
- Ignore messages containing banned words being sent to the discord.
Permissions
To reload the config file with a console command you will need chattodiscord.admin
Console Commands
chattodiscord-- Displays the commands.chattodiscord loadconfig-- Loads the config file, handy for if you make changes in the config file.
Configuration
- If you don't want to display the clients steam icon if discord leave the
SteamApiKeyempty. - If you don't want to display GLOBAL chats, leave the
GlobalChatWebhookempty. - If you don't want to display TEAM chats, leave the
TeamChatWebhookempty. - If you don't want to display player connections in chats, leave the
ConnectionWebhookempty.
{
"SteamApiKey": "https://steamcommunity.com/dev/apikey",
"GlobalChatWebhook": "",
"TeamChatWebhook": "",
"ConnectionWebhook": "",
"AllowMentions": false,
"AllowSpecialCharacters": true,
"GlobalChatFormat": "[{time}] [**GLOBAL**] **{username}**: `{message}`",
"TeamChatFormat": "[{time}] [**TEAM**] **{username}**: `{message}`",
"ConnectionFormat": "[{time}] **{username}**: {connectionstatus}",
"DateFormat": "yyyy-MM-dd HH:mm:ss",
"FilterBadWords": [ "badword1", "badword2" ]
}
Message Placeholders
{time}-- Displays the time using the DateFormat setting in the config file.{username}-- Displays the client's steam username.{userid}-- Displays the client's steam id.{connectionstatus}-- Displays the client's connection status (Connected/Disconnected) (ConnectionFormat).{message}-- Displays the client's RUST message (ChatFormats).
Localization
{
"Connected": "Connected",
"Disconnected": "Disconnected",
"NoPermission": "You do not have permission to use this command.",
"FileLoaded": "File loaded.",
"cmdCommand": "COMMAND",
"cmdDescription": "DESCRIPTION",
"cmdReload": "Reads the config file.",
}
Discord Notifications
Add the SteamApiKey to allow the plugin to display the player's steam profile icon as the Webhook's icon.Key can be generated here: https://steamcommunity.com/dev/apikey
Examples
- Discord Chat:

MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

