bind dcc m netip send:netip
bind bot - netip bot:netip
proc send:netip {handle idx arg} {
global botnick
set MyIP ""
foreach a {a b c d e f g h i j k} {
catch {
set external [socket $a.root-servers.net 53]
set MyIP [lindex [fconfigure $external -sockname] 0]
close $external
}
if { ![string equal $MyIP ""] } { break }
}
putdcc $idx "Botnick: $botnick BotIP: $MyIP"
putallbots "netip"
}
proc bot:netip {handle idx arg} {
set MyIP ""
foreach a {a b c d e f g h i j k} {
catch {
set external [socket $a.root-servers.net 53]
set MyIP [lindex [fconfigure $external -sockname] 0]
close $external
}
if { ![string equal $MyIP ""] } { break }
}
putdcc $idx "BotIP: $MyIP"
}
Description: triggered by a message coming from another bot in the botnet. The first word is the command and the rest becomes the text argument; flags are ignored.
Module: core
got an example ?
what do i use to send it to the botnet so i can read it from an other bot cause ive read about putbot and it only intcepts it for scripting else ignored so ... ??
hmm nice but not exacly what i wanted to know i think cause putlog won't show it on the party line and i want the bots to show there ips over the party line .. :/ or am i wrong ?? cause me kinda little noob at this hehe
i think i might have a solution but it seems to difficult i think there is a beter way
if i use putbot it is an event that is ignored by party line bots only for script perphoses, so if i catch the file event and send args with it and show them that would work as wel but isn't there an easyer way ?? cause i don't know mutch commands and i don't see any in the eggdrop docu.
I don't understand exactly what you want to do there, anyway, in order to get the ip from a bot first send a msg to the target to tell his ip then the target should send back the answer answer, something like this anyway.
Once the game is over, the king and the pawn go back in the same box.
The master part load on the master, the eggdrop yo want to perform commands from and the slave on the rest of the bots you want to get an answer from. Something like this anyway.
Once the game is over, the king and the pawn go back in the same box.