mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
User specific motd see once
This commit is contained in:
@@ -160,7 +160,11 @@ function GetApp() {
|
||||
`User #${id}'s user specific motd is now seen.`,
|
||||
logger.GetColor('bluebg')
|
||||
)
|
||||
userSpecificMotd[id].seen = true
|
||||
if (userSpecificMotd[id].seeOnce) {
|
||||
delete userSpecificMotd[id]
|
||||
} else {
|
||||
userSpecificMotd[id].seen = true
|
||||
}
|
||||
utils.WriteFile(JSON.stringify(userSpecificMotd), userSpecificMotdFile)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user