mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
First pass as Discord integration (#4651)
This commit is contained in:
parent
23e197dcc9
commit
7f986bd7c4
6 changed files with 96 additions and 8 deletions
|
@ -3876,7 +3876,8 @@ var ServerWarnings = {
|
|||
22: "Failed to sign agent {0}: {1}",
|
||||
23: "Unable to load agent icon file: {0}.",
|
||||
24: "Unable to load agent logo file: {0}.",
|
||||
25: "This NodeJS version does not support OpenID."
|
||||
25: "This NodeJS version does not support OpenID.",
|
||||
26: "This NodeJS version does not support Discord.js."
|
||||
};
|
||||
*/
|
||||
|
||||
|
@ -4028,6 +4029,7 @@ function mainStart() {
|
|||
// Messaging support
|
||||
if (config.messaging != null) {
|
||||
if (config.messaging.telegram != null) { modules.push('telegram'); modules.push('input'); }
|
||||
if (config.messaging.discord != null) { if (nodeVersion >= 17) { modules.push('discord.js@14.6.0'); } else { delete config.messaging.discord; addServerWarning('This NodeJS version does not support Discord.js.', 25); } }
|
||||
}
|
||||
|
||||
// Setup web based push notifications
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue