You have to make 2 scripts. One for <bot> and other for <otherbot>.
For <bot>, scripts must be able to catch text in the channel (catching your !command text) and private msg (catching <otherbot> reply text).
For <otherbot>, you have to provide script that can catch your <bot> text in private msg.
Idk how your <otherbot> proccess the input text from <bot>, so basically, script for <bot> should be like:
For catching text in channel.
on *:TEXT:!new:#:{
if ((%flood) || ($($+(%,flood.,$nick),2))) { return }
set -u10 %flood On
set -u10 %flood. $+ $nick On
; Note: it would be good if you send all info including channelname
; and nick that triggered this event and get reply from <otherbot>
; with all info that you already sent.
msg <otherbot> # $nick $1
}
Now waiting for <otherbot> private msg <bot>
For catching text in private, you use:
on *:TEXT:*:?:{
;do checking if msg is from <otherbot>
if $nick == <otherbot> {
; do stuff here
; Note: $1 is your channelname, $2 is nick and $3- is info text from <otherbot>
; make sure that <otherbot> sent you with all info you need.
msg $1 $3-
}
}