mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2013
Posts: 9
I
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Jul 2013
Posts: 9
Hello. I have a bot script that reads back a selected text file to a user in a pm window. However, sometimes they discover that the file is not one they really wanted. How do I incorporate the ability to stop the selected file playback upon a !halt or !stop request to the bot? Here is my script:

Code:
on *:TEXT:!book1:?:{ 

  .play $nick scripts\book1.txt 7000
  close -m $nick
}


Also, another issue. It seems that the bot can only respond to one user request at a time, and wont respond to another user until the current file playback is done. Is there a way to have a bot respond to more than one user at a time?

Thanks;



Always remember...
Joined: Jul 2013
Posts: 9
I
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Jul 2013
Posts: 9
Ok, I found out from another location how to solve this problem. Here is the code to do that.

Code:
on *:TEXT:!stop:?:{ 
  .play stop 
  /msg $nick Playback has been stopped  
  close -m $nick
}


Last edited by iceregent; 10/09/13 12:48 PM.

Always remember...

Link Copied to Clipboard