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

	<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>2010-01-16T09:39:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SL0RD]]></name></author>
		<updated>2010-01-16T09:39:18-04:00</updated>

		<published>2010-01-16T09:39:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91698#p91698</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91698#p91698"/>
		<title type="html"><![CDATA[URL Shortener]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91698#p91698"><![CDATA[
nevermind, i got it working. turns out i typoed the url lol thanks for the help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10253">SL0RD</a> — Sat Jan 16, 2010 9:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SL0RD]]></name></author>
		<updated>2010-01-16T08:47:48-04:00</updated>

		<published>2010-01-16T08:47:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91697#p91697</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91697#p91697"/>
		<title type="html"><![CDATA[URL Shortener]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91697#p91697"><![CDATA[
ok so i just added $result at in the error like that outputs to the channel and all it said was this;<br><br>Error;   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !miut miut:trimproc miut:trim { nick host hand chan text } {        set url $text        if {[catch {exec /usr/bin/curl -d url=$url http://muit.me/api.php?} result]} {                puthelp "PRIVMSG $chan :Error; $result"        } else {                puthelp "PRIVMSG $chan :It worked!"        }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10253">SL0RD</a> — Sat Jan 16, 2010 8:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-01-16T08:17:23-04:00</updated>

		<published>2010-01-16T08:17:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91695#p91695</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91695#p91695"/>
		<title type="html"><![CDATA[URL Shortener]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91695#p91695"><![CDATA[
A good start would be to print the actual content of $result once you've done your call to exec, as this will hold either the error reason, or the result from curl.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jan 16, 2010 8:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SL0RD]]></name></author>
		<updated>2010-01-16T00:28:51-04:00</updated>

		<published>2010-01-16T00:28:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91693#p91693</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91693#p91693"/>
		<title type="html"><![CDATA[URL Shortener]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91693#p91693"><![CDATA[
Hi, I am having trouble getting my bot to work with my URL shortener API. I've been trying to use curl to shorten a url from the channel, but i don't know how to get teh shortened url so the bot can output it in the channel. Also i can't get the bot to actually shorten the url, it keeps saying error. any help would be greatly appreciated. Here is what i have so far.<br> <div class="codebox"><p>Code: </p><pre><code>bind pub - !miut miut:trimproc miut:trim { nick host hand chan text } {        set url $text        if {[catch {exec /usr/bin/curl -d url=$url http://muit.me/api.php?} result]} {                puthelp "PRIVMSG $chan :Error!"        } else {                puthelp "PRIVMSG $chan :It worked!"        }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10253">SL0RD</a> — Sat Jan 16, 2010 12:28 am</p><hr />
]]></content>
	</entry>
	</feed>
