3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

Improve antiraid trigger automod logs

This commit is contained in:
Dragory 2021-04-02 19:50:37 +03:00
parent 3afc95c858
commit 2e5224124f
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 10 additions and 3 deletions

View file

@ -27,6 +27,7 @@ export const AntiraidLevelTrigger = automodTrigger<AntiraidLevelTriggerResult>()
},
renderMatchInformation({ matchResult, pluginData, contexts, triggerConfig }) {
return `Antiraid level was set to ...`;
const newLevel = contexts[0].antiraid!.level;
return newLevel ? `Antiraid level was set to ${newLevel}` : `Antiraid was turned off`;
},
});