Configuration
Here are the available config files for the senor-chat script. Let me know if you need more stuff to be configured.
Config = Config or {}
Config.Compatibility = { enabled = true, consolePrints = true}Configuration Options:
enabled- Enable compatibility mode for old chat exports/eventsconsolePrints- Show prints from client/server on F8/server console
Config = Config or {}
Config.Channels = { default = { { name = "Global", id = 0, timeout = 3, localeKey = "channel_global" }, { name = "Staff", id = 1, timeout = 1, permission = "accessStaffChannel", localeKey = "channel_staff" }, }, enabled = true}Configuration Options:
default- Array of default channelsname- Channel display nameid- Channel ID (unique number)timeout- Message timeout in secondslocaleKey- Locale key for translationspermission- Permission required to access (optional)
Config = Config or {}
Config.Commands = { showInvalidCommandError = true, ooc = { enabled = true, timeout = 5, localeKey = "command_ooc", helpLocaleKey = "command_help_ooc" }, looc = { enabled = true, timeout = 3, localeKey = "command_looc", helpLocaleKey = "command_help_looc" }, me = { enabled = true, timeout = 2, localeKey = "command_me", helpLocaleKey = "command_help_me" }, ['do'] = { enabled = true, timeout = 2, localeKey = "command_do", helpLocaleKey = "command_help_do" }, twt = { enabled = true, timeout = 5, localeKey = "command_twt", helpLocaleKey = "command_help_twt" }, ad = { enabled = true, timeout = 10, localeKey = "command_ad", helpLocaleKey = "command_help_ad" }}Configuration Options:
showInvalidCommandError- Show error message for invalid commands- Each command has:
enabled- Enable/disable the commandtimeout- Message timeout in secondslocaleKey- Locale key for command namehelpLocaleKey- Locale key for help text
Config = Config or {}
Config.Blacklist = { enabled = true, action = "censor", muteDuration = 3}
Config.Mute = { minTimeMinutes = 1, maxTimeMinutes = 1440, allowMuteAdmins = true, adminsCanBeMuted = true, reasons = { { value = "Spam", localeKey = "mute_reason_spam" }, { value = "Toxic Behavior", localeKey = "mute_reason_toxic" }, { value = "Harassment", localeKey = "mute_reason_harassment" }, { value = "Advertising", localeKey = "mute_reason_advertising" }, { value = "Exploiting", localeKey = "mute_reason_exploiting" }, { value = "Other", localeKey = "mute_reason_other" }, { value = "Custom", localeKey = "mute_reason_custom" } }}
Config.Words = { 'example_word', 'another_word',}Configuration Options:
Blacklist- Blacklist configurationenabled- Enable blacklistaction- Action type:"mute"or"censor"muteDuration- Mute duration in minutes (only works with mute action)
Mute- Mute configurationminTimeMinutes- Minimum mute time in minutesmaxTimeMinutes- Maximum mute time in minutes (1440 = 24 hours)allowMuteAdmins- Allow admins to mute playersadminsCanBeMuted- Allow admins to be mutedreasons- Array of mute reasons
Words- Array of blacklisted words (add your own)
Config = Config or {}
Config.PermissionMap = { ['group.admin'] = { "admin", "mutePlayer", "unmutePlayer", "deleteMessage", "accessStaffChannel", "viewMuteStatus", }, ['identifier.discord:481772420194107402'] = { "admin", "mutePlayer", "unmutePlayer", "deleteMessage", "accessStaffChannel", "viewMuteStatus", },}Configuration Options:
PermissionMap- Map permissions to groups or identifiers- Use
group.prefix for framework groups (e.g.,group.admin) - Use
identifier.prefix for specific players:identifier.license:- License identifieridentifier.discord:- Discord IDidentifier.steam:- Steam IDidentifier.ip:- IP address
- Available permissions:
admin- Full admin accessmutePlayer- Mute playersunmutePlayer- Unmute playersdeleteMessage- Delete messagesaccessStaffChannel- Access staff channelviewMuteStatus- View mute status
- Use
Config = Config or {}Config.UI = Config.UI or {}
Config.Presets = { enabled = true, default = "dm", presets = { dm = { profilePictures = true, emojis = true, chatTags = true, chatColors = true, avatars = true, channels = true, channelsMode = "inline", soundOnType = true, showChatOnNewMessage = false, hideAvatars = false, chatLocation = "left-top", chatSize = "medium", defaultMainColor = 4, lockdown = false, maxCustomTags = 2, }, rp = { profilePictures = true, emojis = false, chatTags = true, chatColors = false, avatars = false, channels = true, channelsMode = "inline", soundOnType = false, showChatOnNewMessage = false, hideAvatars = true, chatLocation = "left-top", chatSize = "medium", defaultMainColor = 1, lockdown = true, maxCustomTags = 1, }, minimal = { profilePictures = false, emojis = false, chatTags = false, chatColors = false, avatars = false, channels = false, channelsMode = "outside", soundOnType = false, showChatOnNewMessage = false, hideAvatars = true, chatLocation = "left-top", chatSize = "small", defaultMainColor = 1, lockdown = false, maxCustomTags = 0, } }}
Config.UI.ColorPalette = { { color = "#228be6", name = "Blue", bgColor = "rgba(34, 139, 230, 0.1)", id = 1 }, { color = "#fd7e14", name = "Orange", bgColor = "rgba(253, 126, 20, 0.1)", id = 2 }, { color = "#e74c3c", name = "Red", bgColor = "rgba(231, 76, 60, 0.1)", id = 3 }, { color = "#2ecc71", name = "Green", bgColor = "rgba(46, 204, 113, 0.1)", id = 4 }, { color = "#9b59b6", name = "Purple", bgColor = "rgba(155, 89, 182, 0.1)", id = 5 }, { color = "#f1c40f", name = "Yellow", bgColor = "rgba(241, 196, 15, 0.1)", id = 6 }, { color = "#1abc9c", name = "Teal", bgColor = "rgba(26, 188, 156, 0.1)", id = 7 }, { color = "#e67e22", name = "Carrot", bgColor = "rgba(230, 126, 34, 0.1)", id = 8 },}
Config.Avatar = { Type = "Discord", FallbackImage = "https://avatars.githubusercontent.com/u/71390173?v=4"}Configuration Options:
Presets- UI preset configurationsenabled- Enable presetsdefault- Default preset (dm,rp, orminimal)presets- Available presetschatLocation- Chat position:left-top,center-top,right-top,left-center,center-center,right-center,left-bottom,center-bottom,right-bottomchatSize- Chat size:small,medium,largechannelsMode- Channel display:inlineoroutsidedefaultMainColor- Default color ID (references ColorPalette)
ColorPalette- Available color optionsAvatar- Avatar configurationType- Avatar type:"Discord"or"Steam"FallbackImage- Fallback image URL
ServerConfig = {}
ServerConfig.Avatar = { DiscordToken = "", DiscordGuild = ""}Configuration Options:
DiscordToken- Discord bot token (required for Discord avatars)DiscordGuild- Discord guild/server ID (required for Discord avatars)
Note: Only needed if you are using Discord avatars in config/ui.lua.
Config = Config or {}
Config.Tags = { { id = 'example_id', bgColor = 'rgba(255, 0, 0, 0.1)', color = '#FF0000', text = 'Owner', },}
Config.Colors = { { id = 'example_id', name = 'Custom Color', color = '#FF0000', bgColor = 'rgba(255, 0, 0, 0.1)', },}Configuration Options:
Tags- Array of custom tagsid- Tag identifier (usually Discord role ID)bgColor- Background color (RGBA format)color- Text color (HEX format)text- Tag display text
Colors- Array of custom colorsid- Color identifiername- Color display namecolor- Color value (HEX format)bgColor- Background color (RGBA format)