<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/19512" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2013-09-11T00:23:59-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/19512</id>

		<entry>
		<author><name><![CDATA[gembels]]></name></author>
		<updated>2013-09-11T00:23:59-04:00</updated>

		<published>2013-09-11T00:23:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102033#p102033</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102033#p102033"/>
		<title type="html"><![CDATA[Anto Bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102033#p102033"><![CDATA[
I got this code somewhere.. credits to him, I try to make improvisation.. but failed.. Usually, human will always on on daily.. only small amount of people are online after 1 AM. But not spammer or bot. So, the idea is, I want make some Captcha or question on after 1 AM, wish that general spam bot can not answer and get kick ban. But its not success.. something wrong.. the answer is always wrong.. where is the faulty code ?<br><div class="codebox"><p>Code: </p><pre><code>setudef flag questionbind time - "42 23 * * *" coba:hidupkanbind time - "06 20 * * *" coba:matikanproc coba:hidupkan {} {channel set #bawel +questionputserv "PRIVMSG #bawel : Anti Bot Enable"}proc coba:matikan {} {channel set #bawel -questionputserv "PRIVMSG #bawel : Anti Bot Disabled"}namespace eval question {   bind join - *             [namespace current]::onjoin   bind msgm - ".jawab *"      [namespace current]::answer   namespace eval variable {      variable bantime 1440      variable tag "Banned:"      variable kickreason "Possible bot"      variable channel "#bawel"   }   proc onjoin {nickname hostname handle channel} {      global botnick timers answer      if {$nickname == "Rewel"} { return }      if {[channel get $channel question] == 1} {         if {![isbotnick $nickname] &amp;&amp; ![info exists timers($hostname)]} {            set num1 [rand 9]            set num2 [rand 9]            set q [expr $num1 + $num2]            set answer($hostname) $q            set timers($hostname) [timer 2 [list ::question::noanswer $hostname]]            putserv "PRIVMSG $nickname :I have a question, please answer with: .jawab &lt;number&gt;"            putserv "PRIVMSG $nickname :$num1 + $num2 = ?"         }      }   }   proc noanswer {hostname} {      global botnick timers answer      if {[info exists timers($hostname)]} {         set channel $::question::variable::channel         set bantime $::question::variable::bantime         foreach user [chanlist $channel] {            if {[string match "$hostname" "[string trim [getchanhost $user $channel] "~"]"]} {               set victim [string tolower $user]            }         }         if {[info exists victim]} {            if {[botisop $channel]} {               putserv "mode $channel +b *!*[string trim $hostname "~"]"               putserv "kick $channel $victim :$::question::variable::tag $::question::variable::kickreason"               putserv "PRIVMSG $victim :Kamu tidak menjawab pertanyaan saya!"            }            newchanban $channel *!*[string trim $hostname "~"] question "$::question::variable::kickreason" $bantime         }         unset timers($hostname)         unset answer($hostname)      }   }   proc answer {nickname hostname handle arguments} {      global botnick timers answer      if {[info exists timers($hostname)]} {         set channel $::question::variable::channel         set bantime $::question::variable::bantime         set correctanswer [lindex $arguments 1]         if {[string match $correctanswer $answer($hostname)] != 1} {            if {[botisop $channel]} {               putserv "mode $channel +b *!*[string trim $hostname "~"]"               putserv "kick $channel $nickname :$::question::variable::tag $::question::variable::kickreason"            }            killtimer $timers($hostname)            newchanban $channel *!*[string trim $hostname "~"] question "$::question::variable::kickreason" $bantime            putserv "PRIVMSG $nickname :Jawaban salah!"         } else {            killtimer $timers($hostname)            putserv "PRIVMSG $nickname :Jawaban benar!"            putquick "MODE $channel +v $nickname"         }         unset timers($hostname)         unset answer($hostname)      }   }}putlog "Antibot Loaded"</code></pre></div>Thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12028">gembels</a> — Wed Sep 11, 2013 12:23 am</p><hr />
]]></content>
	</entry>
	</feed>
