特征
- 允许在游戏服务器和 Discord 频道之间进行双向聊天。
- 任何在该 Discord 聊天频道中聊天的 Discord 关联玩家的聊天都会显示在游戏服务器上
- 支持所有使用 OnUserChat 钩子的聊天插件以及默认游戏聊天
Discord 链接
此插件支持 Discord Extension 提供的 Discord Link。此插件将与通过 Discord Link 提供链接玩家数据的任何插件一起使用。获取您的 Bot Token
单击此处了解如何获取 Discord Bot Token配置
设置和选项可以在目录下的文件中进行配置。建议使用编辑器和验证器,以避免格式问题和语法错误。DiscordChatconfig
{
"Discord Bot Token": "",
"Chat Settings": {
"Chat Channel ID": "",
"Team Channel ID": "",
"Cards Channel ID": "",
"Clans Channel ID": "",
"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,
"Add Discord Tag To In Game Messages When Sent From Discord": "[#5f79d6][Discord][/#]",
"Allow plugins to process Discord to Server Chat Messages": true,
"Text Replacements": {
},
"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": []
}
},
"Player State Settings": {
"Player State Channel ID": "460919879076413444",
"Show Admins": true,
"Send Connecting Message": true,
"Send Connected Message": true,
"Send Disconnected Message": true
},
"Server State Settings": {
"Server State Channel ID": "460919879076413444",
"Send Booting Message": true,
"Send Online Message": true,
"Send Shutdown Message": true
},
"Plugin Support": {
"AdminChat Settings": {
"Enable AdminChat Plugin Support": false,
"Chat Channel ID": "",
"Chat Prefix": "@",
"Replace Discord Message With Bot": true
},
"AntiSpam Settings": {
"Use AntiSpam On Player Names": false,
"Use AntiSpam On Server Messages": false,
"Use AntiSpam On Chat Messages": false,
"Use AntiSpam On Plugin Messages": false,
"Use AntiSpam On Team Messages": false,
"Use AntiSpam On Card Messages": false,
"Use AntiSpam On Clan Messages": false
},
"BetterChat Settings": {
"Max BetterChat Tags To Show When Sent From Discord": 3
},
"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 Plugin Messages": false,
"Use ChatTranslator On Team Messages": false,
"Use ChatTranslator On Card Messages": false,
"Use ChatTranslator On Clan Messages": false,
"Discord Server Chat Language": "en"
},
"Clan Settings": {
"Clans Chat Channel ID": "",
"Alliance Chat Channel ID": ""
},
"UFilter Settings": {
"Use UFilter On Player Names": false,
"Use UFilter On Server Messages": false,
"Use UFilter On Discord Messages": false,
"Use UFilter On Plugin Messages": false,
"Use UFilter On Team Messages": false,
"Use UFilter On Card Messages": false,
"Use UFilter On Clan Messages": false,
"Replacement Character": "*"
}
},
"Discord Extension Log Level (Verbose, Debug, Info, Warning, Error, Exception, Off)": "Info"
}
服务器表情符号
Discord Chat 支持服务器表情符号。如果您想安装预制的表情符号集合,您可以在此处找到它们。要了解如何安装服务器表情符号,请查看服务器表情符号文档注意:
要禁用通道发送功能,请将该通道留空。地方化
默认消息位于目录下的文件中。要添加对其他语言的支持,请创建一个新的语言文件夹(例如 对于德语),请将默认语言文件复制到新文件夹,然后自定义消息。DiscordChatlang/endeCopy
{
"V3.Discord.Player.Connecting": " {timestamp.now.shorttime} {ip.country.emoji} **{discordchat.player.name}** is connecting",
"V3.Discord.Player.Connected": " {timestamp.now.shorttime} {player.country.emoji} **{discordchat.player.name}** has joined.",
"V3.Discord.Player.Disconnected": " {timestamp.now.shorttime} **{discordchat.player.name}** has disconnected. ({discordchat.disconnect.reason})",
"V3.Discord.Chat.Server": " {timestamp.now.shorttime} **{discordchat.player.name}**: {discordchat.player.message}",
"V3.Discord.Chat.LinkedMessage": " {timestamp.now.shorttime} **{discordchat.player.name}**: {discordchat.player.message}",
"V3.Discord.Chat.UnlinkedMessage": " {timestamp.now.shorttime} {user.mention}: {discordchat.player.message}",
"V3.Discord.Chat.PlayerName": "{player.name:clan}",
"V3.Discord.Team.Message": " {timestamp.now.shorttime} **{discordchat.player.name}**: {discordchat.player.message}",
"V3.Discord.Cards.Message": " {timestamp.now.shorttime} **{discordchat.player.name}**: {discordchat.player.message}",
"V3.Discord.Clans.Message": " {timestamp.now.shorttime} **{discordchat.player.name}**: {discordchat.player.message}",
"V3.Discord.AdminChat.ServerMessage": " {timestamp.now.shorttime} **{discordchat.player.name}**: {discordchat.player.message}",
"V3.Discord.AdminChat.DiscordMessage": " {timestamp.now.shorttime} **{discordchat.player.name}**: {discordchat.player.message}",
"V3.Discord.PluginClans.ClanMessage": "{timestamp.now.shorttime} [Clan] **{discordchat.player.name}**: {discordchat.player.message}",
"V3.Discord.PluginClans.AllianceMessage": "{timestamp.now.shorttime} [Alliance] **{discordchat.player.name}**: {discordchat.player.message}",
"V3.Server.UnlinkedMessage": "{discordchat.discord.tag} [#5f79d6]{member.name}[/#]: {discordchat.player.message}",
"V3.Server.LinkedMessage": "{discordchat.discord.tag} [#5f79d6]{discordchat.player.name}[/#]: {discordchat.player.message}"
}