跳到主要内容
版本:0.0.55

DiscordAuditPlugin

功能

  • 每次执行踢出 / 封禁时发送一条 Discord 消息
  • 将所有聊天消息记录到 Discord 频道

生成 Webhook URL:https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks

配置

extra_cfg.yml 中启用该插件

extra_cfg.yml
EnablePlugins:
- DiscordAuditPlugin

参考配置

plugin_discord_cfg.yml
# Avatar picture URL
PictureUrl:
# Discord webhook URL for kick/ban events
AuditUrl:
# Discord webhook URL for chat messages
ChatUrl:
# Set this to true if the Discord username of the bot should be the AC server name
ChatMessageIncludeServerName: false
# Set this to true if the audit message should include the Steam ID
ChatMessageIncludeSteamID: false
# Optional list of SteamIDs whose chat messages should not be forwarded to Discord
ChatIgnoreGuids: []
# Set this to true if player connect and disconnect should be audited
EnableConnectionAudit: false