See inside eval function

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

@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.

1 Like

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