How I can create a sentence that welcomes the new viewer
You can create commands with names that are common greetings, e.g. if a user says “hello”, Nightbot will say “Hello $(user), welcome to the stream!”
!addcom -cd=5 hello Hello $(user), welcome to the stream!
You can follow this setup to make Nightbot respond to other greeting words.