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.

Search found 826 matches

by SpiKe^^
Mon Nov 08, 2021 9:53 am
Forum: Scripting Help
Topic: counting digits and if it exceeds threshold set mute
Replies: 37
Views: 10970

Try replacing this line in the script...

Code: Select all

if {[lsearch -nocase $nkls $word] == -1} { append tmptx "$word " }
with this updated line...

Code: Select all

if {[lsearch -nocase -exact $nkls $word] == -1} { append tmptx "$word " }
by SpiKe^^
Sun Nov 07, 2021 12:42 pm
Forum: Scripting Help
Topic: counting digits and if it exceeds threshold set mute
Replies: 37
Views: 10970

Ooops.

Thanks for the fix CrazyCat and simo.

Edited the above post to reflect that fix...
by SpiKe^^
Sun Nov 07, 2021 10:09 am
Forum: Scripting Help
Topic: counting digits and if it exceeds threshold set mute
Replies: 37
Views: 10970

I like this slightly cleaned up version. set whatsapp(maxlength) 5 set whatsapp(unsettime) 20 bind pubm - * 112345check:whatsapp proc 112345check:whatsapp {nick host hand chan text} { global whatsapp set text [stripcodes c $text] if {![string match {*[0-9]*} $text]} { return 0 } set nkls [chanlist $...
by SpiKe^^
Fri Nov 05, 2021 11:37 am
Forum: Scripting Help
Topic: counting digits and if it exceeds threshold set mute
Replies: 37
Views: 10970

set nkls [chanlist $chan] set tmptx "" set text [stripcodes c $text] foreach word [split $text] { set word [string trimright $word ":"] if {[lsearch -nocase $nkls $word] == -1} { append tmptx "$word " } } set digitcount [regsub -all {[[:digit:]]} $tmptx "" tm...
by SpiKe^^
Thu Nov 04, 2021 11:55 am
Forum: Script Support & Releases
Topic: Public Kick/Ban Script (w/ stored info & extended mutes)
Replies: 30
Views: 13426

There is no end to the number of ways an "operator" can misuse a command. If they set a specific ban on a nick, or in your case a partial specific banmask, as that string does, the bot has no choice but to do as they asked. That part of the script is working as intended and documented. Ple...
by SpiKe^^
Thu Nov 04, 2021 11:27 am
Forum: Script Support & Releases
Topic: Public Kick/Ban Script (w/ stored info & extended mutes)
Replies: 30
Views: 13426

That falls under this part of the scripts intended usage cases... # You can also set and remove specific ban masks # .kb nick!*@ahost.com *!me@*.host.org :set 2 bans and kick any nicks that match # !b bart! @host.org 30 :set bans bart!*@* and *!*@host.org for 30 minutes When using this "set and...
by SpiKe^^
Thu Nov 04, 2021 10:50 am
Forum: Script Support & Releases
Topic: Public Kick/Ban Script (w/ stored info & extended mutes)
Replies: 30
Views: 13426

According to the most recent script header above, a dot is used for the separator between the nick(s) and the new kick reason... # .k nick .A new reason :set a new custom kick reason for this kick command Have your channel operator use the command as designed... !kb Maidcaughtme .Out! Tip: Try chang...
by SpiKe^^
Mon Nov 01, 2021 8:44 pm
Forum: Scripting Help
Topic: counting digits and if it exceeds threshold set mute
Replies: 37
Views: 10970

Code: Select all

regsub -all -- {[^[:alnum:]]} $text "" text
by SpiKe^^
Fri Oct 08, 2021 11:56 am
Forum: Script Support & Releases
Topic: CT-Weather
Replies: 43
Views: 45797

|| Temperature:: 293.9?C ||
That's odd, very hot there???
by SpiKe^^
Wed Sep 29, 2021 9:42 am
Forum: Script Requests
Topic: Storing date, nick host and reason of quit
Replies: 5
Views: 2334

Code: Select all

set openfile [open quits.log a]
puts $openfile "[ctime [unixtime]] - $nick $uhost $reason"
close $openfile
by SpiKe^^
Mon Sep 20, 2021 5:14 pm
Forum: Script Support & Releases
Topic: Request songs limit to 2 songs per person
Replies: 16
Views: 15073

mabrook: This code is untested and could surely use some more work. First, add this code somewhere in the script... # script on/off bind and proc bind pub n| !radio radio_off proc radio_off {nick uhost hand chan arg} { set opt [string tolower [lindex [split $arg] 0]] if {$opt eq "off"} { i...
by SpiKe^^
Fri Sep 10, 2021 5:30 pm
Forum: Scripting Help
Topic: set mode on join
Replies: 10
Views: 4447

Re: hi

Gulio wrote:..., but is set and unset mode now on join

Gulio: Try replacing this line of code...

Code: Select all

utimer $::timemode [list [putquick "SAMODE $vchan -$::chanmode"]]
with something more like...

Code: Select all

utimer $::timemode [list putquick "SAMODE $vchan -$::chanmode"]
by SpiKe^^
Thu Sep 09, 2021 1:49 pm
Forum: Scripting Help
Topic: set mode on join
Replies: 10
Views: 4447

CrazyCat: I think I might change this line of code... if {![string first [string tolower $chan] $::chanban] || [isbotnick $nick]} { return 0 } to something more like... if {([string first [string tolower $chan] $::chanban] == -1) || [isbotnick $nick]} { return 0 } [string first ..] returns -1 for &q...
by SpiKe^^
Tue Sep 07, 2021 9:13 pm
Forum: Script Support & Releases
Topic: eggdrop accept colored letters
Replies: 4
Views: 3184

How to make Eggdrop bot Blind for colors?
http://forum.egghelp.org/viewtopic.php?t=12944

Make Eggdrop blind to control codes
http://forum.egghelp.org/viewtopic.php?t=19880

This fix will affect every script loaded to the bot!
by SpiKe^^
Tue Sep 07, 2021 9:03 pm
Forum: Script Requests
Topic: event countdown till the date
Replies: 8
Views: 4045

mabrook wrote:...
how can i set the timer to every 4 hours?

Try replace the bind time line with this bind cron line...

Code: Select all

bind cron - {00 */4 * * *} count:down