$(count) help: Custom message when reach a specific number

How i can do a custom message when nightbot reach a specific number on $(count)?
I have that command: !kill and nighbot say "JPTRON was been killed $(count) times.
And i want when reach 20 it says "JPTRON was been killed 20 times! Man, you are so NOOB"
Its possible?

Yes, it’s possibly by using $(eval):

!addcom !kill $(eval var count = "$(count)";
if (count === "20") {
("JPTRON has been killed 20 times! Man, you are so NOOB");
} else {
("JPTRON has been killed " + count + " times.");
})
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.