There is not a global greeting. People must opt into greetings, you cannot just turn on greetings for users. Interestingly, this was brought up not by channel owners but viewers that complained that they like to lurk and not be announced to the world. The greeting system is based on Twitch’s JOIN event, which also does not fire at times and is not guaranteed to fire when chats reach a certain size.
The user may change their greeting message with
!greeting enable This is my greeting message for when I join chat. This is also how they choose to be announced in the first place; just enabling the feature does not automatically greet everyone that joins chat.
Also, changing this code:
defaultJoinMessage = $.getSetIniDbString(‘greeting’, ‘defaultJoin’, ‘(name) hello world!’),
Would not do what you are expecting. It gets from the database else sets a new value, please refer to the DB documentation in the Documentation area in the forums. As a value was already in the database, it would not change it.
With regards to testing, greetings are also on a forced 6 hour delay so that if a user joins/leaves/joins/leaves, the bot does not spam chat. If you would like the ability to test, please open a feature request, we already have a way to test the join event, but we have it fire off randomly created names, it would probably need a parameter to match a user that has greetings enabled.