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

	<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>2015-05-11T15:55:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[AlphaTech]]></name></author>
		<updated>2015-05-11T15:55:29-04:00</updated>

		<published>2015-05-11T15:55:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104066#p104066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104066#p104066"/>
		<title type="html"><![CDATA[Pastebin and Link Shorteners]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104066#p104066"><![CDATA[
These are some functions that I quickly whipped up that can help you easy pastebin and shorten links. These functions can be used in a simple link shortener command, or by a large script running Trivia. Enjoy!<br><br><strong class="text-strong">pastebin_t: Pastes Given Text</strong><div class="codebox"><p>Code: </p><pre><code>proc pastebin_t t {return [exec echo $t | nc termbin.com 9999]}</code></pre></div>Example:<div class="codebox"><p>Code: </p><pre><code>bind pub - !paste pasteproc paste {n u h c t} {putserv "PRIVMSG $c :[pastebin_t $t]"}</code></pre></div><strong class="text-strong">pastebin_f: Pastes Given File</strong><div class="codebox"><p>Code: </p><pre><code>proc pastebin_f f {return [exec cat $f | nc termbin.com 9999]}</code></pre></div>Example:<div class="codebox"><p>Code: </p><pre><code>set file "/home/user/botdir/file.txt"putserv "PRIVMSG #channel :[pastebin_f $file]"</code></pre></div><strong class="text-strong">tinyurl: Returns a TinyURL of a given link</strong><div class="codebox"><p>Code: </p><pre><code>package require httpproc tinyurl url {set token [::http::geturl http://tinyurl.com/api-create.php?url=$url]return [::http::data $token]::http::cleanup $token}</code></pre></div>Example:<div class="codebox"><p>Code: </p><pre><code>bind pubm - "% !tinyurl *" cmd_tinyurlproc cmd_tinyurl {n u h c t} {putquick "PRIVMSG $c :[tinyurl [lindex [split $t] 1 ]]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12414">AlphaTech</a> — Mon May 11, 2015 3:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
