NightDev Community Forums

See inside eval function


#1

Is there any was for a viewer to see what’s written in a Nightbot command’s eval function?


#2

@SaaS_aSSa

Create two commands, !eval and !command, where !command is aliased to !eval (!command passes input to !eval):

!addcom -cd=5 !eval $(eval $(query))
!addcom -cd=5 !command -a=!eval [YOUR_EVAL_CODE]

Replace the name of the second command, !command, with whatever you want, and replace [YOUR_EVAL_CODE] with whatever code you want to execute with the $(eval) in !eval

With this setup, viewers can now see what’s being passed to !eval by looking at the message in !command on your command list.


closed #3

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