Hi
I want to send msg to users per script. It's a tool i write myself. Often there are more than 20 lines to send to user.
That's my probblem. After a few lines the server disconnect because of flood protect.
My idea is to wait after every line.
send line
wait 1 second or a half
send line
wait
send ...
I don't know what to do. Can someone help me?!
Put all your text in a txt file and use /play. /help /play
If you saved the lines into a .txt you could play the files with a delay between each line I use this for my personal bot to send commands:
Lets say you wanted it sent via a remote
ON 10:text:!commands:/play $nick commands.txt 2000
the 2000 is mili seconds which equals 2 seconds between each line
Play doesnt work, because i do a querry. Not the complete textfile should be send ... only few lines.
Any idea?!
My first post was wrong
on level:text:!commands:?:/play $nick advusercmdlist.txt 100
now that will play the file from the command being issued in a query to the nick at 1 second a line, you just have to change the level of the user do you want everyone to be able to set this off? then * or a specific one like 10
I'll try this in following way now:
+ Querry the textfile
+ Write querry result into a new textfile
+ Play new textfile with delay
+ Delete new textfile
The users who are using the bot would only see lines containing 'exampletext'. Play doesn't work with this. I need a querry result of the Textfile ... and this result should be send to the user.
Thx for all answers!!
Although that might work, earlier suggestions of using play are superior. For one, /play allows you to queue requests so you will only be playing to one user at a time. using timers could end you up sending msgs to 10 ppl at a time and still get flooded off. It also more flexible when it comes to the number of lines needing to be sent.
YEAH thats it!!
Thank you very much!!
Timers now are activated in loop with msg. Timer name und timer set by %var (inc %var 2).
I don't need play.
Thats great!!