Load svr discord settings from db
This commit is contained in:
@@ -88,7 +88,7 @@ class ServerConfigData {
|
|||||||
this.discordConfig = {
|
this.discordConfig = {
|
||||||
sendEvents: true,
|
sendEvents: true,
|
||||||
sendChat: true,
|
sendChat: true,
|
||||||
sendAdminEvents: true,
|
sendAdmin: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
if(dbAssoc) {
|
if(dbAssoc) {
|
||||||
@@ -131,9 +131,9 @@ class ServerConfigData {
|
|||||||
//this.realTimeZone = dbAssoc["svr_real_time_timezone"];
|
//this.realTimeZone = dbAssoc["svr_real_time_timezone"];
|
||||||
|
|
||||||
this.discord = {
|
this.discord = {
|
||||||
sendEvents: true,
|
sendEvents: intToBool(dbAssoc["svr_discord_send_events"]),
|
||||||
sendChat: true,
|
sendChat: intToBool(dbAssoc["svr_discord_send_chat"]),
|
||||||
sendAdmin: true,
|
sendAdmin: intToBool(dbAssoc["svr_discord_send_admin"]),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user