3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Add logs for !note

This commit is contained in:
Dragory 2020-05-22 22:21:56 +03:00
parent a608fe0163
commit 22a77994f6
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 9 additions and 0 deletions

View file

@ -1,4 +1,5 @@
{
"MEMBER_NOTE": "🖊 Note added on {userMention(user)} by {userMention(mod)}",
"MEMBER_WARN": "⚠️ {userMention(member)} was warned by {userMention(mod)}",
"MEMBER_MUTE": "🔇 {userMention(user)} was muted indefinitely by {userMention(mod)}",
"MEMBER_TIMED_MUTE": "🔇 {userMention(user)} was muted for **{time}** by {userMention(mod)}",

View file

@ -72,4 +72,6 @@ export enum LogType {
MASS_ASSIGN_ROLES,
MASS_UNASSIGN_ROLES,
MEMBER_NOTE,
}

View file

@ -626,6 +626,12 @@ export class ModActionsPlugin extends ZeppelinPlugin<TConfigSchema> {
reason,
});
this.serverLogs.log(LogType.MEMBER_NOTE, {
mod: stripObjectToScalars(msg.author),
user: stripObjectToScalars(user, ["user", "roles"]),
reason,
});
this.sendSuccessMessage(msg.channel, `Note added on **${userName}** (Case #${createdCase.case_number})`);
}