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

	<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>2021-09-07T11:11:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mabrook]]></name></author>
		<updated>2021-09-07T11:11:36-04:00</updated>

		<published>2021-09-07T11:11:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110301#p110301</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110301#p110301"/>
		<title type="html"><![CDATA[wiki tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110301#p110301"><![CDATA[
try this..<br><br><a href="https://scripts.eggdrop.fr/details-DictionaryAPI.tcl-s253.html" class="postlink">https://scripts.eggdrop.fr/details-Dict ... -s253.html</a><br><br><br><br>just giving you another option. if you want to..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12921">mabrook</a> — Tue Sep 07, 2021 11:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doas]]></name></author>
		<updated>2021-09-07T10:30:48-04:00</updated>

		<published>2021-09-07T10:30:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110299#p110299</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110299#p110299"/>
		<title type="html"><![CDATA[updated all the packages]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110299#p110299"><![CDATA[
i have updated all the packages <br><br>not its showing <br>Error: Incorrect number of arguments, must be an even number.<br><br>==((LOST))==<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12914">doas</a> — Tue Sep 07, 2021 10:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doas]]></name></author>
		<updated>2021-09-06T21:17:04-04:00</updated>

		<published>2021-09-06T21:17:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110296#p110296</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110296#p110296"/>
		<title type="html"><![CDATA[wiki tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110296#p110296"><![CDATA[
i have mange to get the same reply. have you tried to use any other words? it can be an issue with code or OS ( openbsd). also i have updated all the pkgs but not luck what so ever <br><br>here is the code again<br><br><div class="codebox"><p>Code: </p><pre><code>## edited Jun 27 2017 for https by genewitch# ramok on freenode/#tcl knew the fix## Mar 30 2010# by horgh## Requires Tcl 8.5+ and tcllib## Wikipedia.org fetcher## To enable you must .chanset #channel +wiki## Tests: Whole number (list of possible interpretations)#package require httppackage require htmlparsepackage require tls::http::register https 443 ::tls::socketnamespace eval wiki {variable max_lines 1variable max_chars 400variable output_cmd "putserv"variable url "https://en.wikipedia.org/wiki/"#bind pub -|- "!w" wiki::searchbind pub -|- "!wiki" wiki::search#variable parse_regexp {(&lt;table class.*?&lt;p&gt;.*?&lt;/p&gt;.*?&lt;/table&gt;)??.*?&lt;p&gt;(.*?)&lt;/p&gt;\n&lt;table id="toc"}variable parse_regexp {(?:&lt;/table&gt;)?.*?&lt;p&gt;(.*)((&lt;/ul&gt;)|(&lt;/p&gt;)).*?((&lt;table id="toc")|(&lt;h2&gt;)|(&lt;table id="disambigbox"))}setudef flag wiki}proc wiki::fetch {term {url {}}} {if {$url != ""} {set token [http::geturl $url -timeout 10000]} else {set query [http::formatQuery [regsub -all -- {\s} $term "_"]]set token [http::geturl ${wiki::url}${query} -timeout 10000]}set data [http::data $token]set ncode [http::ncode $token]set meta [http::meta $token]upvar #0 $token stateset fetched_url $state(url)http::cleanup $token# debugputlog "Fetch! term: $term url: $url fetched: $fetched_url"set fid [open "w-debug.txt" w]puts $fid $dataclose $fid# Follow redirectsif {[regexp -- {^3\d{2}$} $ncode]} {return [wiki::fetch $term [dict get $meta Location]]}if {$ncode != 200} {error "HTTP query failed ($ncode): $data: $meta"}# If page returns list of results, choose the first one and fetch that#if {[regexp -- {&lt;p&gt;.*?((may refer to:)|(in one of the following senses:))&lt;/p&gt;} $data]} {#regexp -- {&lt;ul&gt;.*?&lt;li&gt;.*? title="(.*?)"&gt;.*?&lt;/li&gt;} $data -&gt; new_query#return [wiki::fetch $new_query]#}if {![regexp -- $wiki::parse_regexp $data -&gt; out]} {error "Parse error"}return [list url $fetched_url result [wiki::sanitise $out]]}proc wiki::sanitise {raw} {set raw [::htmlparse::mapEscapes $raw]# Remove some help linksset raw [regsub -- {&lt;small class="metadata"&gt;.*?&lt;/small&gt;} $raw ""]set raw [regsub -all -- {&lt;(.*?)&gt;} $raw ""]set raw [regsub -all -- {\[.*?\]} $raw ""]set raw [regsub -all -- {\n} $raw " "]return $raw}proc wiki::search {nick uhost hand chan argv} {if {![channel get $chan wiki]} { return }if {[string length $argv] == 0} {$wiki::output_cmd "PRIVMSG $chan :Please provide a term."return}set argv [string trim $argv]# Upper case first characterset argv [string toupper [string index $argv 0]][string range $argv 1 end]if {[catch {wiki::fetch $argv} data]} {$wiki::output_cmd "PRIVMSG $chan :Error: $data"return}foreach line [wiki::split_line $wiki::max_chars [dict get $data result]] {if {[incr count] &gt; $wiki::max_lines} {$wiki::output_cmd "PRIVMSG $chan :Output truncated. [dict get $data url]"break}$wiki::output_cmd "PRIVMSG $chan :$line"}}# by fedexproc wiki::split_line {max str} {set last [expr {[string length $str] -1}]set start 0set end [expr {$max -1}]set lines []while {$start &lt;= $last} {if {$last &gt;= $end} {set end [string last { } $str $end]}lappend lines [string trim [string range $str $start $end]]set start $endset end [expr {$start + $max}]}return $lines}putlog "wiki.tcl loaded"</code></pre></div>help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12914">doas</a> — Mon Sep 06, 2021 9:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mabrook]]></name></author>
		<updated>2021-08-29T07:26:18-04:00</updated>

		<published>2021-08-29T07:26:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110264#p110264</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110264#p110264"/>
		<title type="html"><![CDATA[wiki tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110264#p110264"><![CDATA[
it seems working but .. need to fix something from the output display..<br><br><br><br>&lt;users&gt; !wiki test<br>&lt;Bot&gt; Test(s), testing, or TEST may refer to:  Test (assessment), an educational assessment intended to measure the respondents' knowledge or other abilities @media all and (max-width:719px){body.skin-minerva .mw-parser-output .tocright{display:none}}.mw-parser-output .tocright{float:right;clear:right;width:auto;background:none;padding:.5em 0 .8em 1.4em;margin-bottom:.5em}.mw-parser-output<br>&lt;BOT&gt; Output truncated. <a href="https://en.wikipedia.org/wiki/Test" class="postlink">https://en.wikipedia.org/wiki/Test</a><br><br><br><br>&lt;user&gt; .errorInfo<br>&lt;BOT&gt; can not find channel named "sock7f6669f50480"<br>&lt;BOT&gt;     while executing<br>&lt;BOT&gt; "eof $sock"<br><br><br><br>no idea to fix it.. i hope anyone can help from the community..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12921">mabrook</a> — Sun Aug 29, 2021 7:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doas]]></name></author>
		<updated>2021-08-29T06:43:18-04:00</updated>

		<published>2021-08-29T06:43:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110263#p110263</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110263#p110263"/>
		<title type="html"><![CDATA[wiki tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110263#p110263"><![CDATA[
hi <br><br>im using this wiki script. <br><br><a href="https://paste.ircnow.org/89a7otirkp2v8xq3gd2v/" class="postlink">https://paste.ircnow.org/89a7otirkp2v8xq3gd2v/</a><br>it was working fine but yesterday i found out its broken and giving me the following error.<br><br>!wiki test<br>&lt;@doas&gt; Error: HTTP query failed (): : <br><br>im not sure what went wrong. <br><br>can anyone help plz.<br><br>regards<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12914">doas</a> — Sun Aug 29, 2021 6:43 am</p><hr />
]]></content>
	</entry>
	</feed>
