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.

"Simple" Botnet announce script?...

Old posts that have not been replied to for several years.
Locked
User avatar
TC^^
Voice
Posts: 22
Joined: Tue Jul 05, 2005 11:50 am

"Simple" Botnet announce script?...

Post by TC^^ »

My wish, is to have a few linked bots, do announcements.

I want to be able to make all bots announce a message on the channels they are on, by using a trigger on my master bot of some kind.

Let's say I have 5 bots

News[1], News[2], News[3], ... etc

Where News[1] is my master bot, which all the other bots are linked to. I want to be able to msg News[1], and make it tell all the other bots thats linked to it, to announce a message.

fx /msg News[1] announce This is the message!

Would trigger News[1], including all the other bots, to say '(News[?]): This is the message!' on all channels.

Now I have tried looking through the TCL archive, and this forum, to find examples or even a complete script! But what I'm searching for, is a script as simple and basic as possible, so I might be able to learn how it's working. I'm not looking for someone to do it all for me, just show me the way, since I'm interested in learning! :shock:


Could someone please provide me some simple code, showing me in the right direction towards the script i want. :cry:

[Edit] Or perhaps show me a really simple script, that explains how I can make my 'master' bot tell the other bots to do a command [/Edit]
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

take a look in the tcl-commands.doc that comes with your eggdrop for

bind msg

putallbots

putserv

These should give you a few hints on where to start looking.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
User avatar
TC^^
Voice
Posts: 22
Joined: Tue Jul 05, 2005 11:50 am

Post by TC^^ »

Thanks.. i will..
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

bind bot - announce botannounce
bind msg m announce gotannounce
proc announce {text} {
  foreach chan [channels] {
    if {[botonchan $chan]} {
      puthelp "privmsg $chan :$text"
    }
  }
}
proc botannounce {from cmd text} {
  announce $text
}
proc gotannounce {nick uhost hand text} {
  putallbots "announce $text"
  announce $text
}
Last edited by demond on Fri Jul 08, 2005 3:31 pm, edited 1 time in total.
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

^doom^ did you forget

Code: Select all

 foreach chan [channels] 
r0t3n @ #r0t3n @ Quakenet
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Tosser^^ wrote:^doom^ did you forget

Code: Select all

 foreach chan [channels] 
Err I gave him hints on where to start. Please dont even start to lecture me on scripting. Especially after your little copywrite theft earlier from metroid. :evil:
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

i sorted it out with metriod now...
r0t3n @ #r0t3n @ Quakenet
User avatar
TC^^
Voice
Posts: 22
Joined: Tue Jul 05, 2005 11:50 am

Post by TC^^ »

Thanks alot Demond! Really nice and simple, and just what I needed. I can deffently work with that!

And thanks for the pointers ^Doom^, read up on them, and I now have a better understanding on some of the key tools for my script.

[Edit] Made the script from your example Demond, and it works like a charm ;) [/Edit]
Locked