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

	<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>2019-03-30T14:38:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Koach]]></name></author>
		<updated>2019-03-30T14:38:20-04:00</updated>

		<published>2019-03-30T14:38:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107574#p107574</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107574#p107574"/>
		<title type="html"><![CDATA[Pandorabot.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107574#p107574"><![CDATA[
<blockquote class="uncited"><div>Are there any plans for a script to be made that works for the new AI engine on eggdrop?</div></blockquote>I don't know of any plans, but I sure would like to see one. Unfortunately, that task is beyond my abilities <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10609">Koach</a> — Sat Mar 30, 2019 2:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zuberlan]]></name></author>
		<updated>2019-03-08T19:45:49-04:00</updated>

		<published>2019-03-08T19:45:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107533#p107533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107533#p107533"/>
		<title type="html"><![CDATA[Pandorabot.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107533#p107533"><![CDATA[
Are there any plans for a script to be made that works for the new AI engine on eggdrop?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12789">Zuberlan</a> — Fri Mar 08, 2019 7:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[roger]]></name></author>
		<updated>2019-03-08T10:28:08-04:00</updated>

		<published>2019-03-08T10:28:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107530#p107530</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107530#p107530"/>
		<title type="html"><![CDATA[bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107530#p107530"><![CDATA[
this is an old one created by someone else<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12747">roger</a> — Fri Mar 08, 2019 10:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zuberlan]]></name></author>
		<updated>2019-03-08T02:34:30-04:00</updated>

		<published>2019-03-08T02:34:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107528#p107528</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107528#p107528"/>
		<title type="html"><![CDATA[Pandorabot.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107528#p107528"><![CDATA[
How does this work if you are using the new AI engine at "<a href="https://home.pandorabots.com/home.html" class="postlink">https://home.pandorabots.com/home.html</a>"?  I believe this is called AIML 2.0 now.  This engine does not give you a botid anymore and the URLs now require keys.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12789">Zuberlan</a> — Fri Mar 08, 2019 2:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[roger]]></name></author>
		<updated>2018-10-23T15:22:12-04:00</updated>

		<published>2018-10-23T15:22:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107133#p107133</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107133#p107133"/>
		<title type="html"><![CDATA[fixed]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107133#p107133"><![CDATA[
nope wasn't a prob with pandora, looked at user file and it was empty, reloaded from back up and all is fime<br>  thank you sir for responding<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12747">roger</a> — Tue Oct 23, 2018 3:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-10-23T13:56:32-04:00</updated>

		<published>2018-10-23T13:56:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107131#p107131</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107131#p107131"/>
		<title type="html"><![CDATA[Pandorabot.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107131#p107131"><![CDATA[
Nope, there should be a coincidence or something. Try telnet and then try with DCC Chat and see what errors you get.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Oct 23, 2018 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[roger]]></name></author>
		<updated>2018-10-23T13:27:26-04:00</updated>

		<published>2018-10-23T13:27:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107129#p107129</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107129#p107129"/>
		<title type="html"><![CDATA[newprob]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107129#p107129"><![CDATA[
not sure if related but since i installed pandora, i can't dcc the bot. anyway pandora can cause this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12747">roger</a> — Tue Oct 23, 2018 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[roger]]></name></author>
		<updated>2018-10-23T07:23:45-04:00</updated>

		<published>2018-10-23T07:23:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107128#p107128</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107128#p107128"/>
		<title type="html"><![CDATA[curl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107128#p107128"><![CDATA[
you hit it right, i'm on linux, installed curl and it works beautifly  <br>  thank you<br>  much appreciated<br>  Roger <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12747">roger</a> — Tue Oct 23, 2018 7:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-10-23T06:39:03-04:00</updated>

		<published>2018-10-23T06:39:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107127#p107127</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107127#p107127"/>
		<title type="html"><![CDATA[Pandorabot.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107127#p107127"><![CDATA[
You get that for one of two reasons:<br><br>1. You are running a windrop (Windows' eggdrop) and it lacks the curl executable, so most likely you would have to search for a binary on Google (like <a href="https://curl.haxx.se/windows/" class="postlink">this</a> first result for example) and change this line:<div class="codebox"><p>Code: </p><pre><code>set pandata [exec curl -sSL $pandurl] </code></pre></div>to the exact curl executable file name that should be in the same folder as the windrop executable.<br><br>or<br><br>2. If you are using an eggdrop on a linux OS then your system lacks curl, so just install it. If you got a distro based on Debian (like Ubuntu or Mint Linux for example) then just <em class="text-italics">apt install curl</em> as root (or add <em class="text-italics">sudo</em> in front of apt if you don't know how to change user from regular to root) should do it. For others just look-up on google how to install a package.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Oct 23, 2018 6:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[roger]]></name></author>
		<updated>2018-10-23T03:45:19-04:00</updated>

		<published>2018-10-23T03:45:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107126#p107126</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107126#p107126"/>
		<title type="html"><![CDATA[curl question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107126#p107126"><![CDATA[
Tcl error [talkto_pub]: couldn't execute "curl": no such file or directory<br><br> getting this error?<br><br>haven't a clue where to look<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12747">roger</a> — Tue Oct 23, 2018 3:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gevermalc]]></name></author>
		<updated>2018-07-25T02:13:06-04:00</updated>

		<published>2018-07-25T02:13:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106962#p106962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106962#p106962"/>
		<title type="html"><![CDATA[Pandorabot.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106962#p106962"><![CDATA[
<blockquote class="uncited"><div>Well, the website seems to be back up, but I am still getting the 301 Moved Permanently message. Is your bot working in IRC, willyw?<br><br>Thanks to all who are helping.</div></blockquote>301, "Moved Permanently"<br><br>The HTTP response status code 301 Moved Permanently is used for permanent URL redirection, meaning current links or records using the URL that the response is received for should be updated. The 301 response from the Web server should always include an alternative URL to which <a href="http://net-informations.com/q/mis/redirect.html" class="postlink">redirection</a> should occur. If it does, a Web browser will immediately retry the alternative URL. This is the best way to ensure that users and search engines are directed to the correct page. The 301 status code means that a page has permanently moved to a new location.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12751">gevermalc</a> — Wed Jul 25, 2018 2:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Merky]]></name></author>
		<updated>2018-06-12T05:58:35-04:00</updated>

		<published>2018-06-12T05:58:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106895#p106895</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106895#p106895"/>
		<title type="html"><![CDATA[Pandorabot.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106895#p106895"><![CDATA[
<blockquote class="uncited"><div>Hi Merky,<br><br>I can't duplicate your error. What did you type when you received the error?<br><br>Although I didn't write this script, I can probably get it fixed, and any info you can provide will help.<br><br>Thanks,<br>Koach</div></blockquote>i type "fovea" bro......<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8625">Merky</a> — Tue Jun 12, 2018 5:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Koach]]></name></author>
		<updated>2018-05-15T16:12:15-04:00</updated>

		<published>2018-05-15T16:12:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106844#p106844</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106844#p106844"/>
		<title type="html"><![CDATA[Pandorabot.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106844#p106844"><![CDATA[
Hi Merky,<br><br>I can't duplicate your error. What did you type when you received the error?<br><br>Although I didn't write this script, I can probably get it fixed, and any info you can provide will help.<br><br>Thanks,<br>Koach<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10609">Koach</a> — Tue May 15, 2018 4:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Merky]]></name></author>
		<updated>2018-05-11T10:17:20-04:00</updated>

		<published>2018-05-11T10:17:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106842#p106842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106842#p106842"/>
		<title type="html"><![CDATA[Pandorabot.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106842#p106842"><![CDATA[
Error bro<br><div class="codebox"><p>Code: </p><pre><code>[21:15:41] Tcl error [talkto_pub]: This regex sucks!!! Source codes changed or what?!?This regex sucks!!! Source codes changed or what?!?    while executing"fetch_pandora  https://pandorabots.com/pandora/talk-xml?botid=$botid&amp;custid=0&amp;input=$TxTx"    (procedure "talkto" line 7)    invoked from within"talkto $nick $uhost $hand $chan $text "    (procedure "talkto_pub" line 3)    invoked from within"talkto_pub $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8625">Merky</a> — Fri May 11, 2018 10:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Koach]]></name></author>
		<updated>2018-04-27T18:46:56-04:00</updated>

		<published>2018-04-27T18:46:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106833#p106833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106833#p106833"/>
		<title type="html"><![CDATA[Pandorabot.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106833#p106833"><![CDATA[
I think this works now (crosses fingers)<br><br>I am sure parts of this script might be written better. So, to all TCL experts (and non experts), please feel free to give me constructive criticism.<br><div class="codebox"><p>Code: </p><pre><code>####################################################################### Script to create an AI bot for a chat room. # Uses https://www.pandorabots.com/botmaster/en/home for the AI brain# Written by heartbroken# version 2.4.3# More info about the script: http://forum.egghelp.org/viewtopic.php?t=19887&amp;start=45# 12-26-2107, 4/27/2018 edited/repaired by Branson# If you need help or have questions, # go to #koachsworkshop on chat.koach.com and ask for koach###################################################################### Bot's Nickname to Respond to: ex. Fovea, what's 1+1? set pandoraNick "Fovea" #Your Pandora Bot ID. (Feel free to use the existing one if you want,# but the bot will think it is fovea. # pandorabots.com will give you a link like this with the botid# https://www.pandorabots.com/pandora/talk?botid=fba0b9735e362e4dset botid "fba0b9735e362e4d"  # enable chat in bot pm : 1 ,disable : 0 or "" set botpm 1 # user must wait X seconds between messages sent to bot. set chatstop 1# .chanset #channel +talk - Turn tells bot to chat in #channelsetudef flag talk bind pubm - "*" talkto_pub bind msgm - "*" talkto_pvt #STOP EDITING HERE package require http 2.5 if {[catch {package require tls 1.6}]} {    putcmdlog "https links requires tcltls : https://core.tcl.tk/tcltls/wiki/Download"    set enabletls 0 } else {    set enabletls 1    tls::init -ssl3 0 -ssl2 0 -tls1 1    http::register https 443 [list ::tls::socket -require 0 -request 1] } proc talkto_pub {nick uhost hand chan text} {    if {![channel get $chan talk] || ([expr {[lsearch -nocase [fix_chars $text] $::pandoraNick*]}] == "-1")} { return 0 }    talkto $nick $uhost $hand $chan $text } proc talkto_pvt {nick uhost hand text} {    if {[expr {[lsearch -nocase [fix_chars $text] $::pandoraNick*]}] == "-1"} { return 0 }    if {[string length $::botpm] &amp;&amp; $::botpm &gt;= "1"} {       talkto $nick $uhost $hand $nick $text    }    return 0 } proc talkto {nick uhost hand chan text} {    global botid   if {[info exists ::flooder($nick)] &amp;&amp; [expr {$::flooder($nick) + $::chatstop}] &gt; [clock seconds]} { return 0 }     regsub -all -nocase $::pandoraNick [fix_chars $text] {} TxT   set TxTx [string map { " " "+" "?" "+" "]" "+" "[" "+" "{" "+" "}" "+" } $TxT];    puthelp "privmsg $chan :$nick: [fetch_pandora  https://pandorabots.com/pandora/talk-xml?botid=$botid&amp;custid=0&amp;input=$TxTx]"   set ::flooder($nick) [clock seconds]    return 0 } proc fetch_pandora {pandurl} {    set pandata [exec curl -sSL $pandurl]    if {[info exists pandata] &amp;&amp; [llength $pandata]} {       if {![regexp {&lt;that&gt;(.*?)&lt;/that&gt;} $pandata -&gt; responce]} {          return -code error "This regex sucks!!! Source codes changed or what?!?"       } else {          return [fix_talk $responce]       }    } } proc fix_chars {txt} {    return  [string trim $txt "?"] } proc fix_talk {str} {    return [string map {" " " " "&amp;" {\&amp;} """ "\'" "©" "(c)" "&amp;#" "#" "&lt;" "&lt;" "&gt;" "&gt;" "%20" " "} $str] }putlog "Loaded  pandora.2.4.4.tcl"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10609">Koach</a> — Fri Apr 27, 2018 6:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
