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

	<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>2014-09-13T11:03:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2014-09-13T11:03:48-04:00</updated>

		<published>2014-09-13T11:03:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103194#p103194</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103194#p103194"/>
		<title type="html"><![CDATA[Slang Search]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103194#p103194"><![CDATA[
Updated: Try this again, AlphaTech, it works fine on my eggdrop1.6.21<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Sat Sep 13, 2014 11:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2014-07-25T16:09:28-04:00</updated>

		<published>2014-07-25T16:09:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103049#p103049</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103049#p103049"/>
		<title type="html"><![CDATA[Re: Slang Search]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103049#p103049"><![CDATA[
Yes, I am fully aware of windrop and its capabilities. I would still prefer to test this on a local machine so I can inspect it and fix it much easier. I only run eggdrops, I would never run a windrop.<br><br>The above code works fine. It's now tested and perfected. Enjoy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Fri Jul 25, 2014 4:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AlphaTech]]></name></author>
		<updated>2014-07-24T16:48:43-04:00</updated>

		<published>2014-07-24T16:48:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103036#p103036</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103036#p103036"/>
		<title type="html"><![CDATA[Re: Slang Search]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103036#p103036"><![CDATA[
Ok so I put it in the scrtipts folder and eggdrop.conf. Then, I rehashed and it didn't crash! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> So I did .chanset and everything and then did !slang on and tried !slang <a href="http://www.google.com" class="postlink">http://www.google.com</a> and still nothing... Also, you can run eggdrop on windows... Check out WinDrop.<br><br>Edit: It does show up on .binds<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12414">AlphaTech</a> — Thu Jul 24, 2014 4:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2014-09-13T11:02:32-04:00</updated>

		<published>2014-07-24T13:45:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103033#p103033</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103033#p103033"/>
		<title type="html"><![CDATA[Slang Command (gizoogle.tcl)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103033#p103033"><![CDATA[
I am not sure if this works, as I have been unable to test it at the moment due to being on a windows PC at this time.<br><br>This is a basic script performing the functions you asked for above. If it doesn't work, please find the error (get on dcc partyline and type: .set errorInfo &lt;-) with the capital I on info. This will return the error output and allow us, or someone else, to fix the line(s) at fault.<br><div class="codebox"><p>Code: </p><pre><code># Gizoogle TCL - istok@IRCSpeed.org# $Id: gizoogle.tcl,v1 25/07/2014 04:57:42am GMT +12 (NZST) IRCSpeed Exp $## Syntax: ##         !slang on##         !slang off##         !slang http://website.etc##         !slang www.website.etc##         !slang whatever you wanted to search##         /msg yourbot slang #channel on|off# Set global trigger hereset pubtrig "!"# -------- NO EDIT ---------proc getTrigger {} {  global pubtrig  return $pubtrig}setudef flag gizooglebind pub - ${pubtrig}slang slang:pubbind msg - slang slang:msgproc slang:pub {nick uhost hand chan arg} {  if {[matchattr $hand o|m $chan]} {    if {[lindex [split $arg] 0] == ""} {puthelp "PRIVMSG $chan :ERROR: Incorrect Parameters. SYNTAX: [getTrigger]slang on|off|www.site.etc|search pattern"; return}    if {[lindex [split $arg] 0] == "on"} {      if {[channel get $chan gizoogle]} {puthelp "PRIVMSG $chan :ERROR: This setting is already enabled."; return}      channel set $chan +gizoogle      puthelp "PRIVMSG $chan :Enabled Slang Command for $chan"      return 0    }    if {[lindex [split $arg] 0] == "off"} {      if {![channel get $chan gizoogle]} {puthelp "PRIVMSG $chan :ERROR: This setting is already disabled."; return}      channel set $chan -gizoogle      puthelp "PRIVMSG $chan :Disabled Slang Command for $chan"      return 0    }    if {([lindex [split $arg] 0] != "") &amp;&amp; ([lindex [split $arg] 1] == "*http://*") || ([lindex [split $arg] 1] == "*www.*")} {      if {![channel get $chan gizoogle]} {return}      set weblink [lindex [split $arg] 1]      puthelp "PRIVMSG $chan :http://www.gizoogle.net/tranzizzle.php?search=$weblink&amp;se=Go+Git+Dis+Shiznit"      return 0    }    if {([lindex [split $arg] 0] != "") &amp;&amp; ([lindex [split $arg] 1] != "") &amp;&amp; ([lindex [split $arg] 2] != "")} {      if {![channel get $chan gizoogle]} {return}      set weblink [join [lrange [split $arg] 0 end]]      set extra [regsub -all -- {\s} "$weblink" +]      puthelp "PRIVMSG $chan :http://www.gizoogle.net/tranzizzle.php?search=$extra&amp;se=Go+Git+Dis+Shiznit"      return 0    }  }}proc slang:msg {nick uhost hand arg} {  global botnick  set chan [strlwr [lindex [split $arg] 0]]  if {[matchattr $hand o|m $chan]} {    if {([lindex [split $arg] 0] == "") &amp;&amp; ([string match "*#*" $arg])} {putserv "NOTICE $nick :\037ERROR\037: Incorrect Parameters. \037SYNTAX\037: /msg $botnick gizoogle #channel on|off"; return}    if {([lindex [split $arg] 1] == "") &amp;&amp; ([string match "*#*" $arg])} {putserv "NOTICE $nick :\037ERROR\037: Incorrect Parameters. \037SYNTAX\037: /msg $botnick gizoogle $chan on|off"; return}    if {[lindex [split $arg] 1] == "on"} {      if {[channel get $chan gizoogle]} {putserv "NOTICE $nick :\037ERROR\037: This setting is already enabled."; return}      channel set $chan +gizoogle      putserv "NOTICE $nick :Enabled Slang Command for $chan"      return 0    }    if {[lindex [split $arg] 1] == "off"} {      if {![channel get $chan gizoogle]} {putserv "NOTICE $nick :\037ERROR\037: This setting is already disabled."; return}      channel set $chan -gizoogle      putserv "NOTICE $nick :Disabled Slang Command for $chan"      return 0    }  }}putlog ".:LOADED:. gizoogle.tcl,v1 25/07/2014 04:57:42am GMT +12 (NZST) istok@IRCSpeed.org"</code></pre></div>Hope it works.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Thu Jul 24, 2014 1:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AlphaTech]]></name></author>
		<updated>2014-07-23T22:21:32-04:00</updated>

		<published>2014-07-23T22:21:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103026#p103026</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103026#p103026"/>
		<title type="html"><![CDATA[Slang Search]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103026#p103026"><![CDATA[
I'm new to eggdrop and tcl files so I can't code them or anything like that but, I heard this is a pretty easy task for a script writer.<br><br>Command: !slang &lt;url or search&gt;<br><br>Ok so when someone does !slang <a href="http://www.example.com" class="postlink">http://www.example.com</a> I need it to return with the <a href="http://www.gizoogle.net" class="postlink">http://www.gizoogle.net</a> URL.<br><br>Example:<br>&lt;AlphaTech&gt; !slang <a href="http://example.com" class="postlink">http://example.com</a><br><br>&lt;MyBot&gt;<a href="http://www.gizoogle.net/tranzizzle.php?search=http://exaple.com&amp;se=Go+Git+Dis+Shiznit" class="postlink">http://www.gizoogle.net/tranzizzle.php? ... is+Shiznit</a><br><br>The trick is to take the URL and put it in the PUT_URL_HERE area of this link<br><br>Link:<br><a href="http://www.gizoogle.net/tranzizzle.php?search=PUT_URL_HERE&amp;se=Go+Git+Dis+Shiznit" class="postlink">http://www.gizoogle.net/tranzizzle.php? ... is+Shiznit</a><br><br>But, I also need the script to recognized multiple words as a URL and turn them into a search. If the script can take the supplied words and put +'s instead of spaces the URL can also work like this.<br><br>&lt;AlphaTech&gt; !slang YOUR SEARCH HERE<br><br>&lt;MyBot&gt; <a href="http://www.gizoogle.net/tranzizzle.php?search=YOUR+SEARCH+HERE&amp;se=Go+Git+Dis+Shiznit" class="postlink">http://www.gizoogle.net/tranzizzle.php? ... is+Shiznit</a><br><br>Thank you and I hope this can be done! IF you have a question, feel free to leave a comment below! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12414">AlphaTech</a> — Wed Jul 23, 2014 10:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
