Hi there’s dozens of topics on how to do what your asking and even an example in the nightbot help docs under the eval variable https://docs.nightbot.tv/
Please try searching before posting next time as there a fairly good chance that your question has been asked and answered before