3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +00:00

Improve antiraid trigger automod logs

This commit is contained in:
Dragory 2021-04-02 19:50:37 +03:00
parent 7088b883e2
commit 92b960216d
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`;
},
});