Allows players to chat between discord and the game server

Supported Games

Features

  • Allows for bi direction chatting between a game server and discord channel.
  • Any Discord linked players who chat in that discord chat channel will have their chat displayed on the game server
  • All chat plugins that use the OnUserChat hook are supported as well as default game chat

Discord Link

This plugin supports Discord Link provided by the Discord Extension.This plugin will work with any plugin that provides linked player data through Discord Link.

Getting Your Bot Token

Click Here to learn how to get an Discord Bot Token

Configuration

{
  "Discord Bot Token": "",
  "Discord Server ID (Optional if bot only in 1 guild)": "",
  "Enable Adding Discord Tag To In Game Messages When Sent From Discord": true,
  "Channel Settings": {
    "Chat Channel ID": "",
    "Team Channel ID": "",
    "Cards Channel ID": "",
    "Join / Leave Channel ID": "",
    "Server Online / Offline Channel ID": ""
  },
  "Message Settings": {
    "Replace Discord User Message With Bot Message": true,
    "Send Messages From Server Chat To Discord Channel": true,
    "Send Messages From Discord Channel To Server Chat": true,
    "Allow plugins to process Discord to Server Chat Messages": true,
    "Discord Message Server Time Offset (Hours)": 0.0,
    "Text Replacements": {
      "TextToBeReplaced": "ReplacedText"
    },
    "Unlinked Settings": {
      "Allow Unlinked Players To Chat With Server": true,
      "Steam Icon ID": 76561199144296099
    },
    "Message Filter Settings": {
      "Ignore messages from users in this list (Discord ID)": [],
      "Ignore messages from users in this role (Role ID)": [],
      "Ignored Prefixes": []
    }
  },
  "Plugin Support": {
    "AdminChat Settings": {
      "Enable AdminChat Plugin Support": false,
      "Chat Channel ID": "",
      "Chat Prefix": "@",
      "Replace Discord Message With Bot": true
    },
    "AntiSpamNames Settings": {
      "Use AntiSpamNames On Player Names": false,
      "Use AntiSpamNames On Server Messages": false,
      "Use AntiSpamNames On Chat Messages": false,
      "Use AntiSpamNames On Team Messages": false,
      "Use AntiSpamNames On Card Messages": false
    },
    "BetterChatMute Settings": {
      "Ignore Muted Players": true
    },
    "ChatTranslator Settings": {
      "Enable Chat Translator": false,
      "Use ChatTranslator On Server Messages": false,
      "Use ChatTranslator On Chat Messages": false,
      "Use ChatTranslator On Team Messages": false,
      "Use ChatTranslator On Card Messages": false,
      "Discord Server Chat Language": "en"
    },
    "Clan Settings": {
      "Display Clan Tag": true
    },
    "UFilter Settings": {
      "Use UFilter On Player Names": false,
      "Use UFilter On Server Messages": false,
      "Use UFilter On Discord Messages": false,
      "Use UFilter On Team Messages": false,
      "Use UFilter On Card Messages": false
    }
  },
  "Discord Extension Log Level (Verbose, Debug, Info, Warning, Error, Exception, Off)": "Info"
}

Note:

To disable channel sending functionality leave that channel blank.

Localization

{
  "V1.Discord.NotLinkedError": "You're not allowed to chat with the server unless you are linked.",
  "V1.Discord.JoinLeave.ConnectedMessage": ":white_check_mark: ({0:HH:mm}) **{1}** has joined.",
  "V1.Discord.JoinLeave.DisconnectedMessage": ":x: ({0:HH:mm}) **{1}** has disconnected. ({2})",
  "V1.Discord.OnlineOffline.OnlineMessage": ":green_circle: The server is now online",
  "V1.Discord.OnlineOffline.OfflineMessage": ":red_circle: The server has shutdown",
  "V1.Discord.ChatChannel.Message": ":desktop: ({0:HH:mm}) **{1}**: {2}",
  "V1.Discord.ChatChannel.LinkedMessage": ":speech_left: ({0:HH:mm}) **{1}**: {2}",
  "V1.Discord.ChatChannel.UnlinkedMessage": ":chains: ({0:HH:mm}) **{1}#{2}**: {3}",
  "V1.Discord.TeamChannel.Message": ":busts_in_silhouette: ({0:HH:mm}) **{1}**: {2}",
  "V1.Discord.CardsChannel.Message": ":black_joker: ({0:HH:mm}) **{1}**: {2}",
  "V1.Discord.AdminChat.Message": ":mechanic: ({0:HH:mm}) **{1}**: {2}",
  "V1.Discord.AdminChat.Permission": ":no_entry: You're not allowed to use admin chat channel because you do not have permission.",
  "V1.Server.DiscordTag": "[#5f79d6][Discord][/#]",
  "V1.Server.UnlinkedMessage": "{0} [#5f79d6]{1}#{2}[/#]: {3}",
  "V1.Server.LinkedMessage": "{0} [#5f79d6]{1}[/#]: {2}",
  "V1.Server.ClanTag": "[{0}] "
}
MIT License

Copyright (c) 2021 MJSU

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.