mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-16 05:07:34 +00:00
add websocket and add option to sync chat
This commit is contained in:
parent
3230849679
commit
3cae366e00
|
@ -27,13 +27,40 @@
|
||||||
gmInte.config.id = "" // Server ID
|
gmInte.config.id = "" // Server ID
|
||||||
gmInte.config.token = "" // Server Token
|
gmInte.config.token = "" // Server Token
|
||||||
|
|
||||||
|
// Websocket
|
||||||
|
/*
|
||||||
|
This is a premium feature, you can buy premium on our website: https://gmod-integration.com/premium
|
||||||
|
Websocket allow you to made a real-time connection between your server and our servers.
|
||||||
|
And so use the real-time features of our addon (like the chat syncronization, role syncronization, ...)
|
||||||
|
*/
|
||||||
|
gmInte.config.websocket = false // If true, the addon will use the websocket instead of the http requests
|
||||||
|
|
||||||
// Chat
|
// Chat
|
||||||
gmInte.config.chatTriggerAll = false // If true, the addon will sync all the messages in the chat
|
gmInte.config.chatTriggerAll = false // If true, the addon will sync all the messages in the chat
|
||||||
gmInte.config.chatTrigger = {
|
gmInte.config.chatTrigger = {
|
||||||
-- ["/gm_exemple "] = "Exemple Prefix ",
|
/* Example:
|
||||||
["// "] = "",
|
["/example "] = {
|
||||||
["/occ"] = "Out of Character :"
|
["prefix"] = "[Example] ", // The prefix of the message
|
||||||
} // Trigger to sync the messages in the chat (need to be enabled on the dashboard) (the key is the trigger and the value is the replacement)
|
["show_rank"] = false, // If true, the addon will show the rank of the player in the prefix
|
||||||
|
["anonymous"] = false, // If true, the addon will not show the name and the avatar of the player in the message
|
||||||
|
["channel"] = "admin_sync_chat" // If set, the addon will use a custom channel to sync the message (use in multi chat syncronization)
|
||||||
|
},
|
||||||
|
["/admin_chat "] = {
|
||||||
|
["prefix"] = "[Admin Chat]",
|
||||||
|
["show_rank"] = true,
|
||||||
|
["channel"] = "discord_channel_id_admin_chat"
|
||||||
|
},
|
||||||
|
*/
|
||||||
|
["// "] = {
|
||||||
|
["prefix"] = "",
|
||||||
|
["show_rank"] = false,
|
||||||
|
["anonymous"] = false,
|
||||||
|
["custom_id"] = "admin_sync_chat"
|
||||||
|
},
|
||||||
|
["/ano "] = {
|
||||||
|
["anonymous"] = true,
|
||||||
|
},
|
||||||
|
} // Trigger to sync the messages in a discord channel (the key is the trigger and the value is the replacement)
|
||||||
|
|
||||||
// Other
|
// Other
|
||||||
gmInte.config.forcePlayerLink = false // If true, the addon will force the players to link their discord account to their steam account before playing
|
gmInte.config.forcePlayerLink = false // If true, the addon will force the players to link their discord account to their steam account before playing
|
||||||
|
|
Loading…
Reference in New Issue
Block a user