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

	<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>2023-03-03T13:15:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2023-03-03T13:15:04-04:00</updated>

		<published>2023-03-03T13:15:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111734#p111734</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111734#p111734"/>
		<title type="html"><![CDATA[gsearch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111734#p111734"><![CDATA[
Version 0.4 has been released, you can check the post here: <a href="http://forum.egghelp.org/viewtopic.php?p=111733#111733" class="postlink">http://forum.egghelp.org/viewtopic.php?p=111733#111733</a> <br><br>OR <br><br>retrieve it from here: <a href="https://raw.githubusercontent.com/ComputerTech312/eggdrop-scripts/main/googler.tcl" class="postlink">https://raw.githubusercontent.com/Compu ... oogler.tcl</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Fri Mar 03, 2023 1:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Valentin]]></name></author>
		<updated>2023-03-02T21:39:46-04:00</updated>

		<published>2023-03-02T21:39:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111731#p111731</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111731#p111731"/>
		<title type="html"><![CDATA[gsearch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111731#p111731"><![CDATA[
Thanks Spike^^! Working perfect <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=12983">Valentin</a> — Thu Mar 02, 2023 9:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2023-03-02T19:36:38-04:00</updated>

		<published>2023-03-02T19:36:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111729#p111729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111729#p111729"/>
		<title type="html"><![CDATA[gsearch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111729#p111729"><![CDATA[
Move this line of code<div class="codebox"><p>Code: </p><pre><code>set ::google "\00302G\00304o\00308o\00302g\00303l\00304e\003"</code></pre></div>to be outside of the proc goo:gle, maybe up with the other script settings.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Thu Mar 02, 2023 7:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Valentin]]></name></author>
		<updated>2023-03-02T17:54:41-04:00</updated>

		<published>2023-03-02T17:54:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111728#p111728</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111728#p111728"/>
		<title type="html"><![CDATA[gsearch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111728#p111728"><![CDATA[
I try to run this tcl, but make me error: Error loading script 'scripts/gsearch.tcl': can't read "::google": no such variable<br><div class="codebox"><p>Code: </p><pre><code>####################################################################################### CT-Google.tcl#######################################################################################Author    ComputerTech#IRC       Irc.DareNet.Org  #ComputerTech#Email     ComputerTech@DareNet.Org#GitHub    https://github.com/computertech312#Version   0.3#Released  21/03/2021####################################################################################### Description:##               - An Elaborate Google Search Script.#               - After 100 usages of the script, it will automatically stop until the next day.#               - Grab your own API key from here#                 https://developers.google.com/custom-search/v1/overview#               - And a Engine ID from here#                 https://cse.google.com/cse/## Credits:##               - Special thanks to launchd, spyda and CrazyCat.## History:##               - 0.3: Added Max results option.#               - 0.2: Fixed a few minor bugs.#               - 0.1: First release.######################################################################################## Start Of Configuration ############################ Set trigger of the script.##set ctgg(trig) "!google"#################### Set flag for Commands.### Owner     = n# Master    = m# Op        = o# Voice     = v# Friend    = f# Everyone  = -##set ctgg(flag) "-"#################### Set API Key##set ctgg(api) "any API KEY"################### Set Engine ID##set ctgg(id) "any ID"################### Set to use Notice Or Privmsg for Output of Commands### 0 = Notice# 1 = Privmsg# 2 = Channel##set ctgg(msg) "2"################### Set amount of results to output##set ctgg(max) "3"######################### End Of Configuration #######################################################################################bind PUB $ctgg(flag) $ctgg(trig) goo:glepackage require jsonpackage require tlspackage require httpproc goo:gle {nick host hand chan text} {   global ctgg google   set ::google "\00302G\00304o\00308o\00302g\00303l\00304e\003"   http::register https 443 [list ::tls::socket]   set url "https://www.googleapis.com/customsearch/v1?key=$ctgg(api)&amp;cx=$ctgg(id)&amp;q=[join $text +]"   set data "[http::data [http::geturl "$url" -timeout 10000]]"    http::cleanup $data   set datadict [::json::json2dict $data]   set items2 [dict get $datadict "searchInformation"]          switch -- $ctgg(msg) {         "0" {set ctgg(output) "NOTICE $nick "}         "1" {set ctgg(output) "PRIVMSG $nick"}         "2" {set ctgg(output) "PRIVMSG $chan"}      }    set time [dict get $items2 "formattedSearchTime"]    set total [dict get $items2 "formattedTotalResults"]    putserv "$ctgg(output) :$google  About $total results ($time seconds)"    set items [dict get $datadict "items"]   for {set i 0} {$i &lt; $ctgg(max)} {incr i} {      set item [lindex $items $i]      set title [dict get $item "title"]      set link [dict get $item "link"]      set info [dict get $item "snippet"]      putserv "$ctgg(output) : $title / $link / $info"   }      http::unregister https}putlog "$::google.tcl v0.3 by ComputerTech Loaded"######################################################################################</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12983">Valentin</a> — Thu Mar 02, 2023 5:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
