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

by NewzUK
Tue Jan 08, 2008 12:05 pm
Forum: Scripting Help
Topic: string match question
Replies: 6
Views: 3100

Code: Select all

 
   foreach line [split $body \n] {
   if {[string match "*color:blue;\"><b>*" $line]} {
    regexp {<b>(.*)</b>} $line - news
  }
 }
}
I tired putting a break line after the foreach, but then it does nothing :?
by NewzUK
Tue Jan 08, 2008 10:51 am
Forum: Scripting Help
Topic: string match question
Replies: 6
Views: 3100

well I've used exactly the same script to get other pages and it's worked, anyway, here is the part I use to get the line: foreach line [split $body \n] { if {[string match "*storylink*" $line]} { and instead of getting the first line 'storylink' is in, it's getting the last. I'm not doing...
by NewzUK
Tue Jan 08, 2008 10:06 am
Forum: Scripting Help
Topic: string match question
Replies: 6
Views: 3100

string match question

Hi - I'm working on a script to retrieve news headlines from a site - I use string match to identify the line in the html that has the info I want. Normally when I do this, it gets the first line of the match, but in this case it's getting the last line (as there are many) at the bottom of the page....
by NewzUK
Thu Jan 11, 2007 12:49 pm
Forum: Scripting Help
Topic: web query
Replies: 3
Views: 2831

great thanks for the help ros...it`s working fine now.

thanks again!
by NewzUK
Thu Jan 11, 2007 11:17 am
Forum: Scripting Help
Topic: web query
Replies: 3
Views: 2831

web query

Hi - I`m trying to retrieve the first line of a list of headlines from a webpage, but instead it gets the last one at the bottom of the list...? Here`s the first part of the script - 2007- is what I`m using to identify the lines... set query "http://a-website-goes-here.com" set token [http...
by NewzUK
Wed Aug 30, 2006 6:53 pm
Forum: Eggdrop Help
Topic: crontab emailing
Replies: 2
Views: 2771

thanks demond for the help - all fixed now. (apologies for the late reply)

=)
by NewzUK
Wed Aug 23, 2006 8:31 pm
Forum: Eggdrop Help
Topic: crontab emailing
Replies: 2
Views: 2771

crontab emailing

Hi - I recently re-set up a crontab for a bot, but now it appears to be emailing the shell everytime the crontab checks to see if the bot is running. This didn't used to happen - any ideas?

Also, is there a way to mass-delete the emails on the shell as there are now hundreds of them!

Thanks!
by NewzUK
Tue Jun 13, 2006 1:29 am
Forum: Eggdrop Help
Topic: "join 0"
Replies: 5
Views: 4579

whatever - dont bother replying to a help forum if you have to be rude about it.
by NewzUK
Sun Jun 11, 2006 2:06 pm
Forum: Eggdrop Help
Topic: "join 0"
Replies: 5
Views: 4579

thanks KrzychuG - having trouble locating the file that code is in however...
by NewzUK
Sun Jun 11, 2006 12:23 pm
Forum: Eggdrop Help
Topic: "join 0"
Replies: 5
Views: 4579

"join 0"

Hi there When I .restart my eggdrops, it is causing the IRC network I use to automatically g-line them. (this does not happen I kill them with .die and launch again). Have spoken to a network op, and they asked me to remove "join 0" from my code, as they use that as a key to help them glin...
by NewzUK
Sun Feb 12, 2006 8:44 pm
Forum: Scripting Help
Topic: else problem
Replies: 1
Views: 4043

else problem

Hi - I have a script to retrieve a line of data from a webpage. The line is either: <p>and-the-info-here or, if there is no info just: <p> to send this into the room, the script after the socket stuff is: if {[string match "*<p>CENTRAL*" $line]} { regexp {<p>CENTRAL(.*).</p><br>} $line - c...
by NewzUK
Sun Dec 11, 2005 4:06 pm
Forum: Scripting Help
Topic: variable set
Replies: 2
Views: 7245

thanks De Kus - will give that a try.
by NewzUK
Sat Dec 10, 2005 11:36 pm
Forum: Scripting Help
Topic: variable set
Replies: 2
Views: 7245

variable set

Hi - is there a way to set a variable just once when the bot starts up, but then does not get set again when there's a rehash?

Thanks in advance.
by NewzUK
Thu Aug 25, 2005 6:29 am
Forum: Archive
Topic: bind times
Replies: 2
Views: 2953

thanks demond - will give that a go...
by NewzUK
Thu Aug 25, 2005 5:25 am
Forum: Archive
Topic: bind times
Replies: 2
Views: 2953

bind times

Hi there

Is there a shorter way to make this timer run at 00, 15, 30 & 45 past the hour than this:

bind time - "00 * * * *"
bind time - "15 * * * *"
bind time - "30 * * * *"
bind time - "45 * * * *"

Thanks in advance...