egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

botnet say trigger script (need help with current script)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
MeJseL
Halfop


Joined: 18 Nov 2003
Posts: 61
Location: Gothenburg , sweden

PostPosted: Tue Sep 24, 2013 11:00 am    Post subject: botnet say trigger script (need help with current script) Reply with quote

I got this script for notice all commands i got on the bot and it will share output with the botnet and print it to a channel.

Problem is bots print out 1 line more the once its like it print out stuff 2 times and sometimes it forgets to print out some stuff from my command list.
Code:



### SETTINGS
set egglist { "flywithme" "hejda" "malvax"}
set comlist {
"» !date"
"» !uptime"
"» !ping <nick>"
"» !cal <calculation>"
"» !google <search word>"
"» !dns <host>"
"» !nmap <ip adress> (NOT WORKING)"
"» !cc <amount> <from> <to> (NOT WORKING)"
"» !ip <ip> (chanset +ipcheck)"
"» !troll (chanset +troll)"
"» !aftonbladet"
"» Piratebay: !pandroid !pmovie"
"» !liveleak"
"» !bash"
"» !phub"
}
bind pub n|o "!pcmds" list:send

proc list:send {nick uhost handle chan arg} {
   global egglist comlist botnick
   set cur_egg 0
   foreach cur_com $comlist {
      if { [lindex $egglist $cur_egg] == $botnick } {
         puthelp "NOTICE $nick :$cur_com"
      } else {
         putbot [lindex $egglist $cur_egg] [concat ">say $nick" $cur_com]
      }
      incr cur_egg
      if { $cur_egg == [llength $comlist] } {
         set cur_egg 0
      }
   }
}

### SETTINGS
set master_egg "flywithme"
# The botnet-nick of the sender
set saychan "#lastwish"

### BINDS
bind bot - ">say" list:say

### PROCEDURES
proc list:say { from cmd arg } {
   global saychan master_egg
   set nick [lindex $arg 0]
   set text [lrange $arg 1 end]
   if { $from == $master_egg } {
      puthelp "NOTICE $nick :$text"
   }
}



If anyone is willing to help me out on this would be great. or point out how to fix it.
_________________
yeah!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber