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

	<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-03T22:10:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2023-03-03T22:10:49-04:00</updated>

		<published>2023-03-03T22:10:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111736#p111736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111736#p111736"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111736#p111736"><![CDATA[
<blockquote class="uncited"><div>work good for me 0.4</div></blockquote>Awesome to hear!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Fri Mar 03, 2023 10:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bosco]]></name></author>
		<updated>2023-03-03T17:36:21-04:00</updated>

		<published>2023-03-03T17:36:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111735#p111735</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111735#p111735"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111735#p111735"><![CDATA[
work good for me 0.4<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12987">Bosco</a> — Fri Mar 03, 2023 5:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2023-03-03T13:06:46-04:00</updated>

		<published>2023-03-03T13:06:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111733#p111733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111733#p111733"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111733#p111733"><![CDATA[
New release of CT-google(it's now called Googler), feel free to reply with bugs or suggestions.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"> <br><div class="codebox"><p>Code: </p><pre><code>####################################################################################### Googler.tcl#######################################################################################Author    ComputerTech#IRC       ircs://irc.rizon.net:6697/computertech#Email     computertech312@gmail.com#GitHub    https://github.com/computertech312#Version   0.4#Released  03/03/2023####################################################################################### 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/#              # History:##               - 0.4: Added safesearch option and fixed/improved code.#               - 0.3: Added Max results option.#               - 0.2: Fixed a few minor bugs.#               - 0.1: First release.#######################################################################################namespace eval Googler {    ########################## Start of configuration.##    # Set the trigger command for the script    variable trig !google        # Set the flags for the script    variable flags ofmn        # Set the API key for the Google Custom Search API    variable api_key "Your-API-Key"        # Set the ID for the search engine associated with the API key    variable engine_id "Your-Engine-ID"        # Set the message type for the script    #    # The message type determines whether the output should be sent as a notice    # to the user, a private message to the user, or a message to the channel.    #    # 0 = notice    # 1 = private message    # 2 = channel message    variable message_type 2        # Set the maximum number of search results to display    #    # This setting determines the maximum number of search results to display    # in the output. The default is 3, but it can be set to any positive integer.    variable max_results 3        # Set the safe search mode for the script    #    # The safe search mode determines how explicit or potentially offensive    # search results should be filtered. The available options are:    #    # "off": No filtering is applied.    # "medium": Potentially explicit results are filtered, but not offensive    #            content that is considered safe by some users.    # "high": All explicit or potentially offensive content is filtered.    #    # The default setting is "high".    variable safe_search "high"# Set logo variable logo "\0032G\0034o\0038o\0032g\0033l\0034e\003"########################### End of configuration.    package require json    package require tls    package require http    bind PUB $flags $trig [namespace current]::google_searchproc google_search {nick host hand chan text} {http::register https 443 [list ::tls::socket]variable data [http::data [http::geturl "https://www.googleapis.com/customsearch/v1?[::http::formatQuery key $::Googler::api_key cx $::Googler::engine_id q [join $text +] safe $::Googler::safe_search]" -timeout 10000]]variable result_dict [::json::json2dict $data]variable search_info [dict get $result_dict "searchInformation"]variable search_results [dict get $result_dict "items"]variable num_results [dict get $search_info "formattedTotalResults"]variable search_time [dict get $search_info "formattedSearchTime"]switch -- $::Googler::message_type {        "0" {set output "NOTICE $nick"}        "1" {set output "PRIVMSG $nick"}        "2" {set output "PRIVMSG $chan"}    }variable output_string "$::Googler::logo About $num_results results ($search_time seconds)"putserv "$output :$output_string"    foreach result [lrange $search_results 0 [expr {$::Googler::max_results - 1}]] {        set title [dict get $result "title"]        set link [dict get $result "link"]        set snippet [dict get $result "snippet"]        putserv "$output :$title / $link / $snippet"    }    http::unregister https    http::cleanup $data        putlog "$::Googler::logo.tcl v0.4 by ComputerTech Loaded"   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Fri Mar 03, 2023 1:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Goga]]></name></author>
		<updated>2022-02-14T00:45:12-04:00</updated>

		<published>2022-02-14T00:45:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110923#p110923</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110923#p110923"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110923#p110923"><![CDATA[
You are always Right, CrazyCat <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=12883">Goga</a> — Mon Feb 14, 2022 12:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-02-13T05:33:24-04:00</updated>

		<published>2022-02-13T05:33:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110922#p110922</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110922#p110922"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110922#p110922"><![CDATA[
There is an error in the last line of the script:<div class="codebox"><p>Code: </p><pre><code>putlog "$::google.tcl v0.3 by ComputerTech Loaded"</code></pre></div>Must be:<div class="codebox"><p>Code: </p><pre><code>putlog "CT-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=691">CrazyCat</a> — Sun Feb 13, 2022 5:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dominatez]]></name></author>
		<updated>2022-02-12T18:56:33-04:00</updated>

		<published>2022-02-12T18:56:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110921#p110921</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110921#p110921"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110921#p110921"><![CDATA[
Have you put the API Key In ?<br><br>And have you put in the Engine ID key in ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12783">Dominatez</a> — Sat Feb 12, 2022 6:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Goga]]></name></author>
		<updated>2022-02-12T05:56:46-04:00</updated>

		<published>2022-02-12T05:56:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110920#p110920</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110920#p110920"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110920#p110920"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>[09:53:48] Tcl error in file 'eggdrop.conf': [09:53:48] can't read "::google": no such variable     while executing "putlog "$::google.tcl v0.3 by ComputerTech Loaded""     (file "scripts/search.tcl" line 116)     invoked from within "source scripts/search.tcl"     (file "eggdrop.conf" line 210) [09:53:48] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)</code></pre></div>Help Please...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12883">Goga</a> — Sat Feb 12, 2022 5:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dominatez]]></name></author>
		<updated>2022-02-11T15:12:58-04:00</updated>

		<published>2022-02-11T15:12:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110919#p110919</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110919#p110919"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110919#p110919"><![CDATA[
Thanks ComputerTech for taking the time.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12783">Dominatez</a> — Fri Feb 11, 2022 3:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2022-02-10T11:57:27-04:00</updated>

		<published>2022-02-10T11:57:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110914#p110914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110914#p110914"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110914#p110914"><![CDATA[
Yeah, i'm running Ubuntu 20.04 too, so that isn't the problem in my opinion, haven't had time yet to run another eggdrop on another server just yet, but i'll try make some time later.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Thu Feb 10, 2022 11:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dominatez]]></name></author>
		<updated>2022-02-09T17:36:34-04:00</updated>

		<published>2022-02-09T17:36:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110910#p110910</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110910#p110910"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110910#p110910"><![CDATA[
If it helps. It is running on my own personal sever which is running <br><br>Ubuntu 20.04.03 LTS Focal<br>TCL Version 8.6<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12783">Dominatez</a> — Wed Feb 09, 2022 5:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2022-02-09T17:12:06-04:00</updated>

		<published>2022-02-09T17:12:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110909#p110909</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110909#p110909"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110909#p110909"><![CDATA[
Weird, as it's working just fine for me, i'll get another server of mine and try install the packages the same version that you have and try that.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Wed Feb 09, 2022 5:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dominatez]]></name></author>
		<updated>2022-02-09T17:08:28-04:00</updated>

		<published>2022-02-09T17:08:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110908#p110908</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110908#p110908"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110908#p110908"><![CDATA[
Hi,<br><br>Tried Searching Lego or anything at all, and it throws that error. 4 and below is fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12783">Dominatez</a> — Wed Feb 09, 2022 5:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2022-02-09T16:17:41-04:00</updated>

		<published>2022-02-09T16:17:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110907#p110907</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110907#p110907"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110907#p110907"><![CDATA[
Well your package versions are slightly older than mine, but i really doubt that would be the cause of this problem.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><br><br>This problem only happens when the variable is set to 5 correct? Plus did you try search another term? perhaps like "LEGO" for example, or something more popular perhaps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Wed Feb 09, 2022 4:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dominatez]]></name></author>
		<updated>2022-02-09T15:51:29-04:00</updated>

		<published>2022-02-09T15:51:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110906#p110906</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110906#p110906"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110906#p110906"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>.tcl package require httpTcl: 2.10a1.tcl package require jsonTcl: 1.3.3.tcl package require tls Tcl: 1.7.20</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12783">Dominatez</a> — Wed Feb 09, 2022 3:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2022-02-09T15:39:08-04:00</updated>

		<published>2022-02-09T15:39:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110904#p110904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110904#p110904"/>
		<title type="html"><![CDATA[CT-Google.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110904#p110904"><![CDATA[
Not sure what the problem is on your end, as when i set the max variable to 5 and here's the results.<div class="codebox"><p>Code: </p><pre><code>&lt;ComputerTech&gt; !google lego&lt;Eggdrop&gt; Google  About 5,760,000,000 results (0.50 seconds)&lt;Eggdrop&gt;  Home | Official LEGO® Shop US / https://www.lego.com/en-us / Explore the world of LEGO® through games, videos, products and more! Shop awesome LEGO® building toys and brick sets and find the perfect gift for your kid.&lt;Eggdrop&gt;  LEGO IDEAS - Home / https://ideas.lego.com/ / Skip to main content. LEGO IDEAS Logo. Explore. Blog. How It Works. Me. Log In. Log in Create account. LEGO IDEAS Logo.&lt;Eggdrop&gt;  Themes | Official LEGO® Shop US / https://www.lego.com/en-us/themes / Develop children's creativity with LEGO® Classic. Sets contain ideas to help them get started, while special pieces alongside classic LEGO bricks inspire even ...&lt;Eggdrop&gt;  LEGO® Education: Classroom Solutions for STEM and STEAM / https://education.lego.com/ / LEGO® Education solutions teach children 21st century skills for future success, starting with preschool and moving through elementary, middle and high ...&lt;Eggdrop&gt;  Sonic the Hedgehog™ – Green Hill Zone 21331 | Ideas - LEGO / https://www.lego.com/en-us/product/sonic-the-hedgehog-green-hill-zone-21331 / Get in the brick-built zone of an iconic 1990s game.</code></pre></div>And here is the package versions.<div class="codebox"><p>Code: </p><pre><code>&lt;ComputerTech&gt; .tcl package require tls&lt;Eggdrop&gt; Tcl: 1.7.20&lt;ComputerTech&gt; .tcl package require http&lt;Eggdrop&gt; Tcl: 2.9.1&lt;ComputerTech&gt; .tcl package require json&lt;Eggdrop&gt; Tcl: 1.3.4</code></pre></div>Can you show me your package versions perhaps?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Wed Feb 09, 2022 3:39 pm</p><hr />
]]></content>
	</entry>
	</feed>
