I have a bot script that plays back files line by line in a delay, when a user requests to view a certain file. However, many times they decide its not the file they want, however, the bot will continue to play back that file until end of file is reached. How do i work it so that the file will halt when the user requests it to stop play back? Here is the code that I have:
- Code: Select all
on *:TEXT:!book1:?:{
.play $nick scripts\book1.txt 7000
close -m $nick
}
This plays back to them in a pm window.
Also, I notice that the bot will only respond to one user at a time, so I end up having to create multiple bots to keep everyone happy. IS there a way to get one bot to respond to more that one request at a time?
Thank you;
Trigger