mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2013
Posts: 11
B
BuxXray Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Nov 2013
Posts: 11
Hey,do you know a script that responds to a query for my bot??
example...
/msg mahbot test then it will reply : Testing!!!!...
mah bot is GameBoy...

Joined: Aug 2013
Posts: 81
I
Babel fish
Offline
Babel fish
I
Joined: Aug 2013
Posts: 81
use ? as the target in either an on TEXT or on ACTION event:

examples:

The following will trigger when somebody queries you with the msg "text"
Code:
on !*:TEXT:help:?:msg $nick Hello, $nick $+ . How may I help you?


The following will trigger when somebody queries you with the action "going crazy!"
Code:
on !*:ACTION:going crazy!:?:msg $nick What's wrong?


Note: It is possible to trigger these events yourself by querying yourself (why would you? I don't know) because the message/action will be both sent and received by you. (this is why you see messages sent to yourself twice if you've ever tried it). Therefore, if you expect that this, for whatever reason, will be an issue, you can prefix the event with an ! like I demonstrated above.

Joined: Nov 2013
Posts: 11
B
BuxXray Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Nov 2013
Posts: 11
thx,if works....but you know how to make my bot`s chat slow??

Joined: Oct 2012
Posts: 164
D
Vogon poet
Offline
Vogon poet
D
Joined: Oct 2012
Posts: 164
If you mean add a delay before the response is sent, use a timer. See "/help /timer"

Example: .timer 1 3 msg $nick TESTING!
That is a timer that will wait for 3 seconds before sending the msg 1 time.
The period before 'timer' prevents mirc from displaying * Timer <X> activated and * Timer <X> halted
Code:
on *:text:test:?:.timer 1 3 msg $nick TESTING!


Joined: Nov 2013
Posts: 11
B
BuxXray Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Nov 2013
Posts: 11
did not work...its said insufficiently perimeters


Link Copied to Clipboard