Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
[add] - サーバー設定を変えたときに監査記録をするように
Browse files Browse the repository at this point in the history
  • Loading branch information
NfoAlex committed Jun 9, 2023
1 parent c5a1b52 commit cb5fca0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions infoUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,22 @@ let changeServerSettings = function changeServerSettings(dat) {
//設定更新
db.dataServer.registration = dat.registration;

//監査ログへの記録処理
recordModeration(
dat.reqSender.userid,
{
type: "server",
userid: "",
channelid: "",
messageid: ""
},
{
actionname: "serverEditConfig",
valueBefore: "",
valueAfter: ""
}
);

fs.writeFileSync("./server.json", JSON.stringify(db.dataServer, null, 4));

}
Expand Down

0 comments on commit cb5fca0

Please sign in to comment.