Can you help me with this custom nightbot command plz

Hey @Zoroarid!

Haha, yes, it’s possible:

!addcom hello $(eval const l = ['RESPONSE_1', 'RESPONSE_2', 'RESPONSE_3']; const u = ['RESPONSE_4', 'RESPONSE_5', 'RESPONSE_6']; const r = (a) => a[Math.floor(Math.random() * a.length)]; const q = '$(query)'; q === 'mate' ? r(l) : q === 'MATE' ? r(u) : 'Hello!')
1 Like