Hello,
i took example from an existing love command to create a hug command and add a third part.
initialy the command works with 2 options.
!hug streamer - special message for streamer
!hug - random viewers
and i try to add !hug viewer
$(eval if ("$(query)" == “streamer”) { var hugMessage = "streamer you’re amazing ! Big hugs PrideKoala we love you LuvSign LuvHearts ";} else if { var hugMessage = “$(user) hugged $(urlfetch https://decapi.me/twitch/random_user/kempolajuwon) PrideKoala " ;} else { var hugMessage = " $(user) hugged $(query)!”;} hugMessage; )
but i got this error : Unexpected token ‘{’
Sorry everything is new for me,it’s still hard to understand what i am doing ^^
yesterday we were around 40-60 viewers during the stream and everytime people used !hug ,it selected the bots isaacracingplus,nightbot or streamelement
we tried yesterday again during live,everyone spamming !hug and it’s always selected bots streamelement,nightbot or isaacracingplus.
Never selected a viewer.