Hello all, nice to meet you!
I'm a newbie when it comes to scripting, but it's quite a lot of fun to mess around with. I took a few example scripts from some online bots and tried to make original scripts for my own channels, but I would like some small additions to make them better.
First, I would like my scripts to have some sort of spam limit. Like when someone keeps spamming !ask, I would like the script to activate a 1 minute cool down before that person can activate the script again, if possible I would like "(nick) please wait (time) before asking again" to appear.
Second, I've been trying this little script (it's an example of the script)
on *:TEXT:!help*:#: {
{ set %help $rand(1,2)
set %rdm.users $nick($chan,0)
set %rdm.choose $rand(1,%rdm.users)
set %rdm $nick($chan,%rdm.choose)
if %help == 1 { /msg $chan Help %rdm $+ with this }
if %help == 2 { /msg $chan Help %rdm $+ with that }
}
}
However, there is no spacing between the random nickname and the following text. It appears as Help nickwith this.
Could someone help me out on this?
Third, I would like my bot to immediately respond to hugs or slaps from other users, the reaction should vary on the person (nick) activating the script though...
God... I'm asking way too much here, but any help is very much appreciated! Other advice is also very welcome, as I said I'm not very experienced with scripting yet.