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!! }
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)