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

	<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>2012-07-02T06:40:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2012-07-02T06:40:36-04:00</updated>

		<published>2012-07-02T06:40:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99657#p99657</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99657#p99657"/>
		<title type="html"><![CDATA[Save images to shell]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99657#p99657"><![CDATA[
How do I run that php script?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Mon Jul 02, 2012 6:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2012-06-27T04:48:13-04:00</updated>

		<published>2012-06-27T04:48:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99630#p99630</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99630#p99630"/>
		<title type="html"><![CDATA[Save images to shell]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99630#p99630"><![CDATA[
edited the code above to use a md5 hash of the url as the filenme, should fix yr problem..<br>also i have added <br><div class="codebox"><p>Code: </p><pre><code>set your_site "http://your.website.url"</code></pre></div>to prevent duplicate images being saved when users paste the image urls from the php script i included in the bots channels<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Wed Jun 27, 2012 4:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2012-06-27T01:01:27-04:00</updated>

		<published>2012-06-27T01:01:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99629#p99629</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99629#p99629"/>
		<title type="html"><![CDATA[Save images to shell]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99629#p99629"><![CDATA[
<a href="http://forum.egghelp.org/viewtopic.php?t=16819&amp;start=12" class="postlink">http://forum.egghelp.org/viewtopic.php?t=16819&amp;start=12</a><br><br>You might be interested in this, albeit this does not do it automatically. But this doesn't mean it cannot easily be automated, for example see "durby" (maintained by lee8oi) which is basically an automated webby as well as adding even more features. Expect the <strong class="text-strong">--file</strong> feature to make into "durby" shortly. Until then experiment with the <strong class="text-strong">--file</strong> feature webby now offers initially.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Jun 27, 2012 1:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2012-06-26T07:43:05-04:00</updated>

		<published>2012-06-26T07:43:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99625#p99625</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99625#p99625"/>
		<title type="html"><![CDATA[Save images to shell]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99625#p99625"><![CDATA[
hey doggo,<br><br>I have a problem<br><br>the bot seems to overwrite images or not save all images<br><br>I`ll show you what I mean, I have images saved in these names:<br><br>images.4chan.org.gif<br>images.4chan.org.jpg<br>images.4chan.org.png<br><br>So I suppose a better way to name the images the script is saving is using a unique name each time, or even naming the images with a counter starting from 1 so it won't repeat itself, any chance that can be changed?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Tue Jun 26, 2012 7:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2012-06-17T01:48:47-04:00</updated>

		<published>2012-06-17T01:48:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99617#p99617</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99617#p99617"/>
		<title type="html"><![CDATA[Save images to shell]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99617#p99617"><![CDATA[
Thanks doggo, works great!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Sun Jun 17, 2012 1:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2012-06-27T04:50:33-04:00</updated>

		<published>2012-06-16T15:47:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99613#p99613</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99613#p99613"/>
		<title type="html"><![CDATA[Save images to shell]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99613#p99613"><![CDATA[
with a few bits borrowed from <a href="http://forum.egghelp.org/viewtopic.php?t=18765" class="postlink">http://forum.egghelp.org/viewtopic.php?t=18765</a> <br><br>i came up with this, tested it a little and it seems to do what you want <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><div class="codebox"><p>Code: </p><pre><code># 16/06/2012 # by doggo #omgwtfnzbs @ EFNET # curl_image.tcl ## curl is required on the shell to use this script# available @ http://curl.haxx.se/######################################################### bind pubm -|- {*://*.jpg*} curl:imagebind pubm -|- {*://*.jpe*} curl:imagebind pubm -|- {*://*.jpeg*} curl:imagebind pubm -|- {*://*.gif*} curl:imagebind pubm -|- {*://*.png*} curl:imagebind pubm -|- {*://*.bmp*} curl:imageset save_folder "/var/www/images" set dupe_links  "/var/www/images/dupes.db" set your_site "http://your.website.url"proc curl:image {nick userhost handle channel str} { global save_folder dupe_links your_siteset urlcheck(ext) {        jpg        jpe        jpeg        gif        png        bmp} if {![regexp {((?:http://|www\.)+[^ ]+)} $str str]} { return } set extension ""        set wlink $str        if { [string match -nocase "*$your_site*" "$wlink"] == 1 } { return }       regsub -all -- {(http://)+} $str "" str        regexp {(www.)?[A-z|0-9|\-|\.|\_]*\.[A-z]{2,3}} $str host        regexp {[/]+(.)*} $str url        regexp {[A-z]{3,4}$} $str extension        set ispic 0        foreach i $urlcheck(ext) {                if {[string match -nocase $extension $i]} {                        set ispic 1                }        }       if {$ispic != 1} { return }       set file_name [md5 $wlink]       set file [open $dupe_links r]        set data [read $file]        close $file        set isdupe 0        foreach line [split $data \n] {            if { [string match -nocase "*$file_name*" "$line"] == 1 } {                catch {unset data}        set isdupe 1            }        }        if {$isdupe == 1} { return }       catch {exec curl $wlink -o $save_folder/$file_name.$extension}       if {![file exists $save_folder/$file_name.$extension]} {       return       } else {       set fp [open $dupe_links "a"]        puts $fp $file_name.$extension       close $fp     }} putlog "curl_image.tcl loaded" </code></pre></div>enjoy<br><br>**edit**<br><br>i like this script so i made a php script to show the images can be found at, <a href="http://pastebin.com/AP0W0YMj" class="postlink">http://pastebin.com/AP0W0YMj</a><br><br>results can be seen here <a href="http://doggo.is-a-geek.com/images/" class="postlink">http://doggo.is-a-geek.com/images/</a><br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Sat Jun 16, 2012 3:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2012-06-16T12:05:54-04:00</updated>

		<published>2012-06-16T12:05:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99612#p99612</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99612#p99612"/>
		<title type="html"><![CDATA[Save images to shell]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99612#p99612"><![CDATA[
Hi all,<br><br>I was wondering if someone could write a script that once a .jpg / .bmp file is pasted in a chat room the eggdrop is on, the eggdrop will download that image and store it in a folder called 'images' please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Sat Jun 16, 2012 12:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
