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 75 matches

by tueb
Wed Dec 22, 2010 7:00 am
Forum: Scripting Help
Topic: trim number [solved]
Replies: 2
Views: 2816

thanks!
by tueb
Wed Dec 22, 2010 6:03 am
Forum: Scripting Help
Topic: trim number [solved]
Replies: 2
Views: 2816

trim number [solved]

Hi, I calculate a duration by milliseconds by using: "set dur [expr ([clock clicks -milliseconds] - $timeasked) * 0.001]" that usually gives me a time like "64.409". But on some networks (i.e. quakenet) i get times like "64.408999999999999". How do i trim the number to ...
by tueb
Wed Jun 16, 2010 11:48 am
Forum: Script Requests
Topic: simple "parrot" script
Replies: 5
Views: 4350

i agree
by tueb
Wed Jun 16, 2010 11:07 am
Forum: Script Requests
Topic: simple "parrot" script
Replies: 5
Views: 4350

Code: Select all

bind pubm - * repeat_pubm
variable lastsaid

proc repeat_pubm {nick host handle channel text} {
global lastsaid
  if {[string equal -nocase $text $lastsaid]} {
     putserv "PRIVMSG $channel :$text"
     set lastsaid $text
  }
}

untested
by tueb
Sun Jun 06, 2010 5:43 am
Forum: Script Requests
Topic: Deop ops on inactivity & Reop on activity
Replies: 8
Views: 7579

i hope this helps: #your channel: variable opchan "#channel" #idle time in minutes: variable idletime 60 bind time - "* * * *" deop_user variable oplist "" proc deop_user {a b c d e} { global opchan idletime oplist set users [lrange [chanlist $opchan] 1 end] foreach use...
by tueb
Sun May 02, 2010 7:10 am
Forum: Script Requests
Topic: file directory relative to .conf
Replies: 0
Views: 2069

file directory relative to .conf

Hi, is there a way to see a directory to a file relative to the eggdrop`s .conf-file? I already found [file dirname filename] but that command only returns a name comprised of all of the path components in name excluding the last element. If name is a relative file name and only contains one path el...
by tueb
Tue Apr 20, 2010 9:21 am
Forum: Script Requests
Topic: send link on text
Replies: 4
Views: 3299

Hi, this would be the simplest script to do so: bind pub -|- !forum typ_forum proc typ_forum {nick uhost handle channel text} { puthelp "PRIVMSG $channel :\[\002Forum\002\] http://www.moxquiz.de" } by changing "forum" and the url into something else you can add new links. this wo...
by tueb
Fri Feb 19, 2010 6:15 pm
Forum: Script Requests
Topic: i need Trivia
Replies: 4
Views: 3519

by tueb
Fri Jan 29, 2010 4:07 pm
Forum: Script Requests
Topic: capture all websites posted in channel
Replies: 8
Views: 5256

bind pubm - * url_pubm bind pub -|- !web url_pub set urllogfilename "urllog.data" proc url_pubm {nick host handle channel text} { global urllogfilename foreach word [split $text] { if {[string length $word] >= 5 && ([regexp {^(f|ht)tp(s|)://} $word] || [regexp "www." $wo...
by tueb
Thu Jan 28, 2010 6:56 pm
Forum: Script Requests
Topic: capture all websites posted in channel
Replies: 8
Views: 5256

right, thx
by tueb
Thu Jan 28, 2010 1:53 pm
Forum: Script Requests
Topic: capture all websites posted in channel
Replies: 8
Views: 5256

I hope this works: bind pubm - * url_pubm bind pub -|- !web url_pub set urllogfilename "urllog.data" proc url_pubm {nick host handle channel text} { global urllogfilename foreach word [split $text] { if {[string length $word] >= 5 && {[regexp {^(f|ht)tp(s|)://} $word] || [regexp {^...
by tueb
Tue Jan 26, 2010 4:36 pm
Forum: Script Requests
Topic: capture all websites posted in channel
Replies: 8
Views: 5256

hi, i haven't tested it yet, so theres probably at least one typo in it. let me know if you have problems with it. commands: !web and !web 01252010 to get yesterdays urls. (please tell me a better command for this ;-) bind pubm - * url_pubm bind pub -|- !web url_pub set urllogfilename "urllog.d...
by tueb
Fri Nov 06, 2009 8:17 am
Forum: Scripting Help
Topic: [solved] bind time - once a month
Replies: 2
Views: 2303

thanks! =D
by tueb
Fri Nov 06, 2009 6:36 am
Forum: Scripting Help
Topic: [solved] bind time - once a month
Replies: 2
Views: 2303

[solved] bind time - once a month

hi,

i`m trying to run a proc once a month (1st of the month at 11 hours and 11 minutes) with this:


bind time "11 11 01 * *" monthly_check_update
proc monthly_check_update {min hour day month year} {
}

but it doesn`t seem to work. do you guys see an error in that?

thx,

tueb
by tueb
Sun Oct 18, 2009 7:09 pm
Forum: Scripting Help
Topic: [SOLVED]check if some mentioned by an user is in the channel
Replies: 2
Views: 2423

great, thx!