NightDev Community Forums

2 different counters in one command

Hey, I want to add a command like the following which includes two different counters.

!hug $(user) $(eval a=[“hugged $(touser)”, “got rejected by $(touser)”];a[Math.floor(Math.random() * a.length)])

So far so good, but how do I add the counters for each possibility now? If I just use $(count) I have the same counter for both opportunities.

Hope somebody can help me with that :slight_smile:

Hey you could do this with the qoute api [CustomAPI] Quote system
I’m assuming your probably not familiar with how to use in which case I can write out a code for you I’ll just need abit to write it out. Anyway ways let me know if you need help.


Hey, thank’s for your help. I checked the link you sent me, but I don’t really know how this should work with my command. So I’d be very grateful if you could help me with that.