Weak Auras custom event for Encounters

So I thought it would be really nice to have my own little weak aura to cheer and thank my group members after the last boss has been eliminated

I got it working for the most part except for some small tweaks here and there where the ecounter id I pulled off a wiki page wasn’t correct. So I’m collecting data on each encounter I run so I can see it print out " Encounter ended id : xxxx , status: Success.

Is there a better way than doing this Weak Auras? I currently have custom triggers that leverage the Lua (pronounced Lew uh) language which I guess is native to wow in many parts.

I also have it set so it only activaates on certain encounter ids only from the last boss in only a handful of encounters, typically Time walking for now.

Any thoughts?