SneakyAzShiite commented on a Page, On Join  -  Mar 05, 2014

Is there any chance i can get further assistance on this? I have a welcome script and am trying to fix it up for my twitch chat. They have a rule of no more than 30messages over 20seconds and i wanna make sure i dont break that rules again. I talked to xangold and he told me what i need.

xangold- "Add them to a hashtable, check the table every 1.6 seconds, and remove top message and send it or add them to a window if you must have them sequentially sent."
me- "I've been looking to change it to welcome multiple people if they join together. That only counts as one msg right?"
xangold- "Correct, that was the "merge" part (plus it looks nicer)"

Hopefully this is an appropriate place to ask for help? Im really new at this and am working to learn it.

This is my basic "join" message-
on *:JOIN:#: { msg $chan Welcome $nick to my stream, enjoy the nuggets!! }

Noutrious  -  Mar 05, 2014

Haven't coded in mSL for a long time (and am writing this right here in textarea), but it should be something like this:
alias -l wsettings {
if ($1 == chan) return #yourchan
if ($1 == delay) return 2
}
alias -l outputwelcomes {
msg $wsettings(chan) Welcome %welcomestr to my stream, enjoy the nuggets!!
unset %welcomestr
}
on :START:{ unset %welcomestr | .timer 0 $wsettings(delay) outputwelcomes }
on
:JOIN:#:if ($chan == $wsettings(chan)) set %welcomestr $addtok($welcomestr,$nick,44)

SneakyAzShiite  -  Mar 06, 2014

I couldnt get it to work unfortunately. Maybe im doing something wrong.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.