NightDev Community Forums

Can someone help me with a nightbot command?

I’m not very good with coding or commands but I would like some help with writing a command for nightbot that involves counting. Thank you very much.

What do you need help with exactly ?

I would like when someone types “slaygoblin” for nightbot to reply, “You have slain a goblin!” Along with how many times the user has used the command.

Do you want when just one person uses the command it counts up or do you want if anyone in your chat uses it itll count up?

Hey @slaygoblins!

Here’s the command that will update every time someone calls it:

!addcom slaygoblin $(user) has slain a goblin! $(count) goblins were executed so far...