This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

one at a time please :)

Old posts that have not been replied to for several years.
Locked
User avatar
toefraz
Halfop
Posts: 44
Joined: Thu Jul 01, 2004 4:35 am

one at a time please :)

Post by toefraz »

ok, i have a botnet of 3 bots, and i have a script that is loaded on all of them. It has features such as !op and !voice and !save and stuff like that. but i added a variable to the script that adds an abbreviation to the commands, so they are now !toe-op !toe-deop and !toe-save; and so on. and on each bot the abbreviation is different. but there still is !help on all of them. how do i get just one bot to respond to !help and after that one bot responds, the others dont notice the $nick
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

by coordinating bots' actions via exchanging messages over botnet
User avatar
toefraz
Halfop
Posts: 44
Joined: Thu Jul 01, 2004 4:35 am

Post by toefraz »

i figured that. do you know of any scripts that can show me how to incorporate that?
When the going gets tough...Make lemonade!!!
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

no, but I can show you how, provided you are willing to incorporate my code in your script
User avatar
toefraz
Halfop
Posts: 44
Joined: Thu Jul 01, 2004 4:35 am

Post by toefraz »

sure, ill give you credit for it too.
When the going gets tough...Make lemonade!!!
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

no need for credit ;) it's really simple:

Code: Select all

set semaphor 0
bind pub - !help pub_help
proc pub_help {n u h c t} {
  if !$::semaphor {
    # help request not being handled by another bot
    # notify all bots and proceed
    putallbots helping 
    puthelp "notice $n :<help stuff here>"
  } else {
    # request already being handled, ignore it
    # clear the semaphor after small delay
    utimer 5 {set ::semaphor 0}
  }
}
bind bot - helping {set semaphor 1;#}
of course, this will work effectively only if your your botnet lag is less than the IRC lag (which is usually the case)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

naturally, this scriptlet can be elaborated to distinguish between help requests coming (almost) simultaneously from different users, but I don't think you are that picky ;)
User avatar
toefraz
Halfop
Posts: 44
Joined: Thu Jul 01, 2004 4:35 am

Post by toefraz »

where it says "helping", i can change that to anything right?
putallbots helping
bind bot - helping {set semaphor 1;#}
When the going gets tough...Make lemonade!!!
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

indeed
User avatar
toefraz
Halfop
Posts: 44
Joined: Thu Jul 01, 2004 4:35 am

Post by toefraz »

ok, thank you very much. :D
When the going gets tough...Make lemonade!!!
User avatar
toefraz
Halfop
Posts: 44
Joined: Thu Jul 01, 2004 4:35 am

Post by toefraz »

I loaded the script on my bots, but when i do !help they all still respond
When the going gets tough...Make lemonade!!!
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

see my remark about the lag
User avatar
toefraz
Halfop
Posts: 44
Joined: Thu Jul 01, 2004 4:35 am

Post by toefraz »

anyway to get around it?
When the going gets tough...Make lemonade!!!
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

put your bots on different servers, hoping that the lag will be diverse enough for this to work

or, appoint just one bot to answer help queries
User avatar
toefraz
Halfop
Posts: 44
Joined: Thu Jul 01, 2004 4:35 am

Post by toefraz »

the switching servers didnt help. So ill just appoint one bot then. thanks for all your help
When the going gets tough...Make lemonade!!!
Locked