Is the channel already on the bots channel list?forever79 wrote:proc partchan1 { } {
putserv "part #ayna"
timer 1 partchan1
}
timer 1 partchan1
i use this command, after 20 minute bot part chan and its not join chan.
Server says I'm not on channel: #ayna
what am i doing ?
i want to
my bot, cycle every 1 minute
Code: Select all
bind time - * partchan
proc partchan { args } { puthelp "PART #channel" }
I don't know what eggdrop really is doing, but i thought maybe it doesn't join after 20 retries... if this is true, JOIN would help.forever79 wrote:after 20 minute bot part chan and its not join chan.
Code: Select all
bind time - * partchan
proc partchan { args } { 
	putserv "PART #channel" 
	utimer 1 [list putserv "JOIN #channel"]
}Code: Select all
bind time - * partchan 
proc partchan { args } { puthelp "PART #channel" } Code: Select all
bind time - * partchan 
proc partchan { args } { 
   putserv "PART #channel" 
   utimer 1 [list putserv "JOIN #channel"] 
}Code: Select all
bind msgm - * pv_kick
proc pv_kick {nick uhost hand text} {
global botnick spambantime
##  i think u dont need to change anything below 
##  the bot will kickban if someone private message bot said words with "#" , "join" ,"channel" .etc 
##  if u want change please make sure you cannot put "*words*" . "*" or "?" will make the tcl didn`t work
if {[regexp -nocase "" $text] > 0} { 
  foreach kickchan [channels] {
    if {![isop $nick $kickchan] || ![isvoice $nick $kickchan]} {    
      if {[onchan $nick $kickchan]} {   
         set bmask "*!*[string range $uhost [string first "@" $uhost] end]"
         if {![ischanban $bmask $kickchan] || [botisop $kickchan]} {
               set kickmsg "\00312\002\037Cause\037:\002 Mass-Msg/Invite/Adv/Trojan Send\00312"  
               putquick "KICK $kickchan $nick :$kickmsg"
               newchanban $kickchan $bmask $botnick Mass-Msg $spambantime
             }
       }
    }
}
}
}
putlog "loaded noadvertiseonme.tcl version 1.0 By Silveryo or _andy_"Code: Select all
proc partchan1 {} {
  if {[validchan #channel] && [botonchan #channel]} {
    channel set #channel +inactive
    utimer 5 partchan2
  }
}
proc partchan2 {} {
  channel set #channel -inactive
  utimer 55 partchan1
}
if {![string match *partchan1* [utimers]]} {
  timer 55 partchan1
}