<?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/21482" />

	<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>2024-04-10T06:54:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TimeRider]]></name></author>
		<updated>2024-04-10T06:54:26-04:00</updated>

		<published>2024-04-10T06:54:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112708#p112708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112708#p112708"/>
		<title type="html"><![CDATA[Re: Repeat kick on specific command or text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112708#p112708"><![CDATA[
Simo, there seems to be a problem that the timer of 30 seconds not being to reset itself sometimes. Some users are getting mute banned even after using .tell after 30 seconds.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12879">TimeRider</a> — Wed Apr 10, 2024 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2024-04-05T17:52:23-04:00</updated>

		<published>2024-04-05T17:52:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112687#p112687</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112687#p112687"/>
		<title type="html"><![CDATA[Re: Repeat kick on specific command or text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112687#p112687"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm * "% .tell*" Repeated:Static-Textset chantexttrigger "4:30"proc Repeated:Static-Text {nick uhost hand chan text} {    if {[matchattr $hand of|of $chan] || [isop $nick $chan] || [ishalfop $nick $chan] || [isbotnick $nick]} { return 0 }    global chantexttrigger chantextflood      set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]set user $nick:$chan if {![info exists chantextflood($user)]} { set chantextflood($user) 0 ; utimer [lindex [split $chantexttrigger :] 1] [list text:flood:list $user] } if {[incr chantextflood($user)] &gt;= [lindex [split $chantexttrigger :] 0]} {   if {[isvoice $nick $chan]} { pushmode $chan -v $nick }      if {[string match -nocase "*@*irccloud*" $uhost]} {                      set ident [string trimleft [lindex [split $uhost @] 0] "~"]                    set xbmaskx [string map {sid id uid id} $ident]                    set bmask  m:*!*$xbmaskx@*                   if {![ischanban $bmask $chan]} { pushmode $chan +b $bmask ; timer 10 [list timed:ban $chan $bmask]}                   }  else {                       set bmask "m:*!*@[lindex [split $uhost "@"] 1]"                   if {![ischanban $bmask $chan]} { pushmode $chan +b $bmask ; timer 10 [list timed:ban $chan $bmask]} }    if {[info exists chantextflood($user)]} { unset chantextflood($user) }   } flushmode $chan} proc timed:ban {chan banmask} {  if {[ischanban $banmask $chan]} {    pushmode $chan -b  $banmask   } else { putlog "$banmask is already removed from $chan" }}proc text:flood:list u {global chantextfloodif {[info exists chantextflood($u)]} { incr chantextflood($u) -1 }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Apr 05, 2024 5:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TimeRider]]></name></author>
		<updated>2024-04-05T06:16:11-04:00</updated>

		<published>2024-04-05T06:16:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112686#p112686</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112686#p112686"/>
		<title type="html"><![CDATA[Re: Repeat kick on specific command or text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112686#p112686"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind pubm * "% .tell*" Repeated:Static-Textset chantexttrigger "4:30"proc Repeated:Static-Text {nick uhost hand chan text} {    if {[matchattr $hand of|of $chan] || [isop $nick $chan] || [ishalfop $nick $chan] || [isbotnick $nick]} { return 0 }    global chantexttrigger chantextflood      set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]set user $nick:$chan if {![info exists chantextflood($user)]} { set chantextflood($user) 0 ; utimer [lindex [split $chantexttrigger :] 1] [list text:flood:list $user] } if {[incr chantextflood($user)] &gt;= [lindex [split $chantexttrigger :] 0]} {   if {[isvoice $nick $chan]} { pushmode $chan -v $nick }      if {[string match -nocase "*@*irccloud*" $uhost]} {                      set ident [string trimleft [lindex [split $uhost @] 0] "~"]                    set xbmaskx [string map {sid id uid id} $ident]                    set bmask  m:*!*$xbmaskx@*                      pushmode $chan +b $bmask                    }  else {                       set bmask "m:*!*@[lindex [split $uhost "@"] 1]"                       pushmode $chan +b $bmask }    if {[info exists chantextflood($user)]} { unset chantextflood($user) }   } flushmode $chan}proc text:flood:list u {global chantextfloodif {[info exists chantextflood($u)]} { incr chantextflood($u) -1 }}</code></pre></div></div></blockquote>Hi simo, thank you, the script seems to be working. Is it also possible to add a timer of when the mute ban expires?<br><blockquote class="uncited"><div><br><br>Are you dead set on using a kick or ban?   Because you have reminded me of something else, that may be suitable.<br><br><br>I'm curious about this.    <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Is this script available for download somewhere?    I didn't see it on the archive.<br>Thanks.</div></blockquote>Hi willy, yes, but, a mute ban would also be nice to set with a option of timer of when the mute ban would be removed.<br><br>Unfortunately, the script or bot I am using for the .tell feature is a Sopel bot which is build with python. But, it would have been nice to add a throttle via python.<br><br>For now, it an eggdrop bot muting or banning the user is something i can see as solution.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12879">TimeRider</a> — Fri Apr 05, 2024 6:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2024-04-02T12:40:46-04:00</updated>

		<published>2024-04-02T12:40:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112677#p112677</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112677#p112677"/>
		<title type="html"><![CDATA[Re: Repeat kick on specific command or text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112677#p112677"><![CDATA[
<blockquote class="uncited"><div>Hi, I am looking for a repeat kick script that would either mute, kick or ban a user from the channel for repeating more than 4 times in 30 seconds like this:</div></blockquote>Are you dead set on using a kick or ban?   Because you have reminded me of something else, that may be suitable.<br><br><a href="https://forum.eggheads.org/viewtopic.php?p=45537&amp;hilit=throttle#p45537" class="postlink">viewtopic.php?p=45537&amp;hilit=throttle#p45537</a><br><br>Your current script could be edited to incorporate that code as a throttle.   The user can use the command once, then it doesn't work for him again, for xx seconds.   The idea is that this ruins his fun with hammering the command.<br><br>This is just an alternative idea that came to mind.    <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>I've used that code by user, in that old post linked above,  many times.   It's great.<br>However, if you feel you need to do a ban or kick,  then just ignore this. <br><br><blockquote class="uncited"><div>I am using this .tell command in channel so users can send offline messages to other users ...</div></blockquote>I'm curious about this.    <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Is this script available for download somewhere?    I didn't see it on the archive.<br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Apr 02, 2024 12:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2024-04-02T12:41:03-04:00</updated>

		<published>2024-04-02T10:17:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112676#p112676</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112676#p112676"/>
		<title type="html"><![CDATA[Re: Repeat kick on specific command or text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112676#p112676"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm * "% .tell*" Repeated:Static-Textset chantexttrigger "4:30"proc Repeated:Static-Text {nick uhost hand chan text} {    if {[matchattr $hand of|of $chan] || [isop $nick $chan] || [ishalfop $nick $chan] || [isbotnick $nick]} { return 0 }    global chantexttrigger chantextflood      set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]set user $nick:$chan if {![info exists chantextflood($user)]} { set chantextflood($user) 0 ; utimer [lindex [split $chantexttrigger :] 1] [list text:flood:list $user] } if {[incr chantextflood($user)] &gt;= [lindex [split $chantexttrigger :] 0]} {   if {[isvoice $nick $chan]} { pushmode $chan -v $nick }      if {[string match -nocase "*@*irccloud*" $uhost]} {                      set ident [string trimleft [lindex [split $uhost @] 0] "~"]                    set xbmaskx [string map {sid id uid id} $ident]                    set bmask  m:*!*$xbmaskx@*                      pushmode $chan +b $bmask                    }  else {                       set bmask "m:*!*@[lindex [split $uhost "@"] 1]"                       pushmode $chan +b $bmask }    if {[info exists chantextflood($user)]} { unset chantextflood($user) }   } flushmode $chan}proc text:flood:list u {global chantextfloodif {[info exists chantextflood($u)]} { incr chantextflood($u) -1 }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Apr 02, 2024 10:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TimeRider]]></name></author>
		<updated>2024-03-29T04:33:07-04:00</updated>

		<published>2024-03-29T04:33:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112666#p112666</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112666#p112666"/>
		<title type="html"><![CDATA[Re: Repeat kick on specific command or text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112666#p112666"><![CDATA[
Because I have turned off the native flood-msg as I have the Duckhunt game in the channel which uses !bang command too.<br><br>So, I only need it for the abusers who are flooding the channel with the .tell command as above.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12879">TimeRider</a> — Fri Mar 29, 2024 4:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-03-29T03:02:09-04:00</updated>

		<published>2024-03-29T03:02:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112665#p112665</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112665#p112665"/>
		<title type="html"><![CDATA[Re: Repeat kick on specific command or text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112665#p112665"><![CDATA[
Why use a tcl when you have the native setting <em class="text-italics">flood-msg</em> ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Mar 29, 2024 3:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TimeRider]]></name></author>
		<updated>2024-03-29T02:16:10-04:00</updated>

		<published>2024-03-29T02:16:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112664#p112664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112664#p112664"/>
		<title type="html"><![CDATA[Repeat kick on specific command or text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112664#p112664"><![CDATA[
Hi, I am looking for a repeat kick script that would either mute, kick or ban a user from the channel for repeating more than 4 times in 30 seconds like this:<br><div class="codebox"><p>Code: </p><pre><code>.tell nick some random text flood.tell nick some random text flooding.tell nick some random text flood.tell nick some random text flooding</code></pre></div>I am using this .tell command in channel so users can send offline messages to other users but it is getting abused.<br><br>If anyone could please write me this code, I would be grateful.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12879">TimeRider</a> — Fri Mar 29, 2024 2:16 am</p><hr />
]]></content>
	</entry>
	</feed>
