Plugins
/Discord Chat
Discord Chat
The Discord Chat plugin logs in-game chat messages to a specified Discord channel, allowing administrators to monitor player communication from Discord.
Features
- Logs all in-game chat to Discord
- Color-coded embeds for different chat types
- Configurable channel ID
- Option to ignore specific chat types
- Customizable embed colors
Requirements
This plugin requires the Discord connector to be configured with a valid bot token and appropriate permissions.
Configuration Options
Option | Description | Default | Required |
---|---|---|---|
channel_id | The ID of the Discord channel to log chat messages to | "" | Yes |
chat_colors | Color mapping for different chat types | See below | No |
color | Default embed color if no specific color is set | 16761867 | No |
ignore_chats | Array of chat types to ignore | ["ChatSquad"] | No |
enabled | Whether the plugin is enabled | true | No |
Chat Colors Configuration
The chat_colors
object maps chat types to color values:
{ "ChatAll": 16761867, // Orange "ChatTeam": 65280, // Green "ChatAdmin": 16711680 // Red }
Supported Chat Types
ChatAll
- All chat messagesChatTeam
- Team chat messagesChatSquad
- Squad chat messagesChatAdmin
- Admin chat messages
How It Works
- The plugin listens for all in-game chat messages
- Messages are filtered based on the
ignore_chats
configuration - Each message is formatted into a Discord embed
- The embed color is determined by the chat type or uses the default color
- Messages are sent to the configured Discord channel
Example Configuration
{ "channel_id": "123456789012345678", "chat_colors": { "ChatAll": 16761867, "ChatTeam": 65280, "ChatAdmin": 16711680 }, "color": 16761867, "ignore_chats": ["ChatSquad"] }
Discord Setup
- Create a Discord bot and get its token
- Add the bot to your Discord server with appropriate permissions
- Create a channel for chat logs
- Copy the channel ID and use it in the plugin configuration
- Ensure the bot has permission to send messages in the channel
Tips
- Use different colors for different chat types to make logs easier to read
- Consider ignoring squad chat if it creates too much noise
- Make sure the Discord bot has the necessary permissions in the target channel
- Test the configuration by sending messages in-game and checking the Discord channel
Built with
Show your support! Star us on GitHub ⭐️