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

	<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>2007-11-10T06:10:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Domin]]></name></author>
		<updated>2007-11-10T06:10:14-04:00</updated>

		<published>2007-11-10T06:10:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77671#p77671</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77671#p77671"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77671#p77671"><![CDATA[
The user your using to execute <br>!learn whatever <br>have the +m flag at the bot ?<br>If it dont it wont remember anything of what you write.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7855">Domin</a> — Sat Nov 10, 2007 6:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AudiAddict]]></name></author>
		<updated>2007-10-28T10:10:42-04:00</updated>

		<published>2007-10-28T10:10:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77214#p77214</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77214#p77214"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77214#p77214"><![CDATA[
True, so why isn't it writing data to that file?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9259">AudiAddict</a> — Sun Oct 28, 2007 10:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-28T10:10:43-04:00</updated>

		<published>2007-10-28T10:09:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77213#p77213</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77213#p77213"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77213#p77213"><![CDATA[
The reason it does'nt bark at you, is, as you stated in an earlier post, because you've already created that file by hand (hence the file exists).<br><br>There is still the issue wether your eggdrop is actually able to open it or not.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Oct 28, 2007 10:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AudiAddict]]></name></author>
		<updated>2007-10-28T10:04:34-04:00</updated>

		<published>2007-10-28T10:04:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77211#p77211</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77211#p77211"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77211#p77211"><![CDATA[
<blockquote class="uncited"><div>Keep in mind that /scripts/learn.dat and scripts/learn.dat points to two completely different locations on your filesystem.<br><br>This script in particular expects, and depends, on you providing a relative path with one single directory (data/learn.dat or scripts/learn.dat or similar).</div></blockquote>If I understand you're answer correctly, I have not set my data file correctly?<br><div class="codebox"><p>Code: </p><pre><code> set learn_db "/etc/eggdrop/data/learn.dat" </code></pre></div> is what I'm using, this seems to work since it's not giving me learn.dat file not found.<br><br>Selecting another folder/path gives me an error that the file cannot be found. <br><br>So it would seem that this is ok?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9259">AudiAddict</a> — Sun Oct 28, 2007 10:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-28T09:58:22-04:00</updated>

		<published>2007-10-28T09:58:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77209#p77209</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77209#p77209"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77209#p77209"><![CDATA[
Keep in mind that /scripts/learn.dat and scripts/learn.dat points to two completely different locations on your filesystem.<br><br>This script in particular expects, and depends, on you providing a relative path with one single directory (data/learn.dat or scripts/learn.dat or similar).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Oct 28, 2007 9:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AudiAddict]]></name></author>
		<updated>2007-10-28T05:16:47-04:00</updated>

		<published>2007-10-28T05:16:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77201#p77201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77201#p77201"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77201#p77201"><![CDATA[
<blockquote class="uncited"><div>your missing out the folder data . in the parth .<br><br>should be <br>eggdrop/data/learn.dat <br><br>take a look in eggdrop for a folder named data, if there's not 1 there, make 1, then put a file named learn.dat  in that folder, then restart the bot.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"></div></blockquote>Hey smash, I don't have a data folder, I figured I didn't need one since I changed the setting to /scripts/learn.dat and not /data/learn.dat.<br><br>Like I said the bot can find the learn.dat file, it's just not able to write data into it. <br><br>Maybe u could try sending your learn.dat file and I could see if that would work? email : <a href="mailto:jsbosch@xs4all.nl">jsbosch@xs4all.nl</a> (first letter is a j )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9259">AudiAddict</a> — Sun Oct 28, 2007 5:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[smash]]></name></author>
		<updated>2007-10-27T23:05:25-04:00</updated>

		<published>2007-10-27T23:05:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77197#p77197</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77197#p77197"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77197#p77197"><![CDATA[
your missing out the folder data . in the parth .<br><br>should be <br>eggdrop/data/learn.dat <br><br>take a look in eggdrop for a folder named data, if there's not 1 there, make 1, then put a file named learn.dat  in that folder, then restart the bot.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8041">smash</a> — Sat Oct 27, 2007 11:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AudiAddict]]></name></author>
		<updated>2007-10-28T06:28:21-04:00</updated>

		<published>2007-10-27T11:02:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77183#p77183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77183#p77183"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77183#p77183"><![CDATA[
The script from Smash above does the same thing.<br><br>egg[x]: No defenition found for word.<br><br>It seems that it's not writing the data to it's file anywhere.<br><br>I've set the data file to /scripts/learn.dat , /etc/eggdrop/scripts/learn.dat all no go.<br><br>I did the following :<br><br>- Manualy created learn.dat --&gt; set file dir  --&gt; no error with finding the file --&gt; but still no defenition found problem (not writing data)<br><br>- Set file dir, but did not create learn.dat --&gt; error, learn.dat not found when trying to !learn<br><br>- Chown/chmod 777 or as the current running eggdrop user --&gt; no go<br><br>- Manualy create learn.dat and give it max acces (CHMOD 777) --&gt; still no writing of data possible<br><br>- Made Eggdrop Op --&gt; and reoped myself with the telnet eggdrop client --&gt; no go<br><br>- Chmodded the whole eggdrop dir + sub dirs as 777 (crazy, I know) --&gt; no go<br><br>- Chown whole dir + sub dirs as the current eggdrop running user --&gt; no go. <br><br>I think it's a combination of linux rights (chmod) and setting the correct database file/dir.<br><br>I've tried everything, hopefully somebody can help me. Because I'm having the exact same problem with other learn scripts. The bot responds in the channel, but doesn't learn data!<br><br>Is it maybe a eggdrop setting which needs to be adjusted?<br><div class="codebox"><p>Code: </p><pre><code> set errorInfo</code></pre></div>This works, but doesn't give me any errors while trying to learn. Doesn't give me any errors at all actually.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9259">AudiAddict</a> — Sat Oct 27, 2007 11:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[smash]]></name></author>
		<updated>2007-10-26T15:58:42-04:00</updated>

		<published>2007-10-26T15:58:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77164#p77164</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77164#p77164"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77164#p77164"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Simple !learn TCL that supports several defenition lines# Created by Hal9000 @ irc.PTnet.org## !learn add word defenition# !learn del word &lt;number|all&gt;# and also !learn &lt;ins|put|rep&gt; &lt;number&gt; &lt;defenition&gt;## You can see a defenition using + &lt;word&gt;# You can search inside the whole file (including defenitions) using ** word# Large defenitions (more than six lines) will be sent into the user so the# chan wont be flooded. You can force sending to channel the same way you can# force sending to nicks.# ?? defenition &gt; nick## What does this script has different from other so common ?? scripts?# The characters are treated properly. Chars like ';' or '[' are properly handled# and there have been no problems untill now.# Also we have a multi line support... and a "repeat explain" protection.## Inspired on fluxlearn TCL.## Some additional features, sugestions and bufixes from#   Status@brasnet.org aka Juvenal@PTnet.org## If you find any bug, pleas bug me at hal9000@gupe.net# PLEASE CHANGE THE LINE BELOW. If you don't, the file and the directory will be# createdset learn_db "data/learn.dat"### - ### No need to edit below this line... ### - #### or at least i hope so ;)putlog "!learn TCL by Hal9000 @ irc.ptnet.org loaded."bind pub m !learn learn_learnbind pub - "+" learn_explainbind pub - "$" learn_searchset learn_whodid ""proc learn_learn { nick uhost hand chan args } { set args [lindex $args 0] set args [split $args " "] switch [lindex $args 0] {  "add" {   if {[lindex $args 2] == ""} {    puthelp "NOTICE $nick :Try !learn add word defenition!"    } else {      learn_addEntry $nick [lindex $args 1] [lrange $args 2 end]      puthelp "NOTICE $nick :Defenition added"      learn_flood "[lindex $args 1]" $chan     }  }  "del" {   if {[lindex $args 2]!=""} {    learn_delEntry [lindex $args 1] [lindex $args 2]    puthelp "NOTICE $nick :Defenition removed"    learn_flood "[lindex $args 1]" $chan   } else {      learn_delEntry [lindex $args 1]      puthelp "NOTICE $nick :Defenition removed"     }  }  "ins" {   if {[lindex $args 3]!=""} {    learn_insEntry [lindex $args 1] [lindex $args 2] [lrange $args 3 end]    puthelp "NOTICE $nick :Defenition inserted"    learn_flood "[lindex $args 1]" $chan   } else {puthelp "NOTICE $nick :Syntax: !learn ins word num text" }  }  "put" {   if {[lindex $args 3]!=""} {    learn_putEntry [lindex $args 1] [lindex $args 2] [lrange $args 3 end] $nick    puthelp "NOTICE $nick :Defenition inserted"    learn_flood "[lindex $args 1]" $chan   } else {puthelp "NOTICE $nick :Syntax: !learn put word num text" }  }  "rep" {   if {[lindex $args 3]!=""} {    learn_repEntry [lindex $args 1] [lindex $args 2] [lrange $args 3 end]    puthelp "NOTICE $nick :Defenition replaced"    learn_flood "[lindex $args 1]" $chan   } else {puthelp "NOTICE $nick :Syntax: !learn rep word num text" }  }    default { puthelp "NOTICE $nick :Syntax: \002!learn &lt;add|del|info|ins|rep&gt;" } }}proc learn_explain { nick uhost hand chan args } {global learn_db learn_whodid;if {![info exists learn_whodid]} {set learn_whodid ""}set real_chan $chanset args [split [lindex $args 0] " "]if {$args == ""} { puthelp "PRIVMSG $chan :\002+\[\002x\002]: Usage: ?? &lt;word&gt; \[&gt; nick]" ; return }set explain [string tolower [lindex $args 0]]; set chan [string tolower $chan]if {([lindex $args 1] == "&gt;" || [lindex $args 1] == "&gt;&gt;") &amp;&amp; [lindex $args 2] != ""} { set chan [lindex $args 2] #         if {[lsearch -exact $learn_whodid [list $explain [string tolower $chan]]] != -1} {#                puthelp "PRIVMSG $real_chan :\002Hey ${nick}, i've already told $chan about \"$explain\"... no need to repeat (i think)"#                return 0#         }}set fp [open $learn_db r];set allEntrys ""while {![eof $fp]} {gets $fp curEntry;set curEntry [split $curEntry " "];if {[string equal -nocase [lindex $curEntry 1] $explain]} {lappend allEntrys [join $curEntry " "]}}close $fpset count 0if {[llength $allEntrys]==1} { if {[lsearch -exact $learn_whodid [list $explain [string tolower $chan]]] != -1} {puthelp "PRIVMSG $real_chan :\002Hey ${nick}, i've already told $chan about \"$explain\"... no need to repeat (i think)"return 0 } else { puthelp "PRIVMSG $chan :\002\037${explain}\037: \002[join [lrange [split [lindex $allEntrys 0] " "] 2 end]]";incr count }} else { if {[llength $allEntrys]&gt;6&amp;&amp;[string index $chan 0]=="#"&amp;&amp;!(([lindex $args 1] == "&gt;" || [lindex $args 1] == "&gt;&gt;") &amp;&amp; [lindex $args 2] != "")} {set chan $nick;           puthelp "PRIVMSG $real_chan :\002\037${explain}?\002\037 What a huge defenition... i'll tell you in private instead..." }         if {[lsearch -exact $learn_whodid [list $explain [string tolower $chan]]] != -1} {                puthelp "PRIVMSG $real_chan :\002Hey ${nick}, i've already told you about \"$explain\"... no need to repeat (i think)"                return 0 } foreach curEntry $allEntrys {incr countputhelp "PRIVMSG $chan :\002\037${explain}\[\037\002${count}\002\037]:\037 \002[join [lrange [split $curEntry " "] 2 end]]"} }if {$count == 0} { puthelp "PRIVMSG $chan :\002${explain}\[\002x\002\]: \002No defenition found for word." }if {([lindex $args 1] == "&gt;" || [lindex $args 1] == "&gt;&gt;") &amp;&amp; [lindex $args 2] != ""} {puthelp "NOTICE $nick :Ok, done."}lappend learn_whodid [list $explain [string tolower $chan]]set explain [learn_filterstr $explain];# Don't allow code to be executedset chan [learn_filterstr $chan];# ensure []s are properly handled...utimer 60 "learn_flood \"$explain\" \"$chan\""}proc learn_flood {word target} {# removes from "already told so" listglobal learn_whodidset word [string tolower $word]; set target [string tolower $target]set lin [lsearch -exact $learn_whodid [list $word $target]] if {$lin == -1} {return} else {set learn_whodid [lreplace $learn_whodid $lin $lin]}}proc learn_addEntry { nick word defenition } { global learn_db;set word [string tolower $word] if {![file exists $learn_db]} {file mkdir [lindex [split $learn_db /] 0];set fp [open $learn_db w+]  puts $fp "Hal9000 + Just do a \002+ \037word\037\002 or \002+ \037word\037 &gt; \037nick\037\002"  puts $fp "Hal9000 !learn hal-learn script | mantained by the #Eggdrop team at irc.PTnet.org" } else {set fp [open $learn_db a]};puts $fp "$nick $word [join $defenition]";close $fp}proc learn_delEntry { word {remnum "all"}} { global learn_db set word [string tolower $word] set fp [open $learn_db r] set allEntrys "" set count 1 if {$remnum == "all"} {  while {![eof $fp]} {gets $fp curEntry;if {![string equal -nocase [lindex [split $curEntry] 1] $word]} {lappend allEntrys $curEntry}} } else {  while {![eof $fp]} {   gets $fp curEntry   if {![string equal -nocase [lindex [split $curEntry] 1] $word] || ($count != $remnum &amp;&amp; $remnum != -2)} {    if {[info exists curEntry]&amp;&amp;$curEntry!=""} {lappend allEntrys $curEntry}    if {[string equal -nocase [lindex [split $curEntry] 1] $word]} {incr count}   } else {incr count}  } } close $fp;set fp [open $learn_db w];foreach curEntry $allEntrys {puts $fp $curEntry};close $fp}proc learn_insEntry {word num text} { global learn_db set word [string tolower $word] set fp [open $learn_db r] set allEntrys "" set count 1 while {![eof $fp]} {  gets $fp curEntry  if {![string equal -nocase [lindex [split $curEntry] 1] $word] || ($count != $num &amp;&amp; $num != -2)} {   if {[info exists curEntry]&amp;&amp;$curEntry!=""} {lappend allEntrys $curEntry}   if {[string equal -nocase [lindex [split $curEntry] 1] $word]} {incr count}  } else {incr count;lappend allEntrys "$curEntry [join $text]"} } close $fp;set fp [open $learn_db w];foreach curEntry $allEntrys {puts $fp $curEntry};close $fp}proc learn_putEntry {word num text {whodid "."}} { global learn_db set word [string tolower $word] set fp [open $learn_db r] set allEntrys "" set count 1 if {$num==1} {lappend allEntrys "$whodid $word [join $text]"} while {![eof $fp]} {  gets $fp curEntry  if {[string equal -nocase [lindex [split $curEntry] 1] $word]} {incr count}  if {[info exists curEntry]&amp;&amp;$curEntry!=""} {lappend allEntrys $curEntry}  if {$count==$num&amp;&amp;$num!=1} {lappend allEntrys "$whodid $word [join $text]"} } close $fp;set fp [open $learn_db w];foreach curEntry $allEntrys {puts $fp $curEntry};close $fp}  proc learn_repEntry {word num text} { global learn_db set word [string tolower $word] set fp [open $learn_db r] set allEntrys "" set count 1 while {![eof $fp]} {  gets $fp curEntry  if {![string equal -nocase [lindex [split $curEntry] 1] $word] || ($count != $num &amp;&amp; $num != -2)} {   if {[info exists curEntry]&amp;&amp;$curEntry!=""} {lappend allEntrys $curEntry}   if {[string equal -nocase [lindex [split $curEntry] 1] $word]} {incr count}  } else {incr count;lappend allEntrys "[lrange [split $curEntry] 0 1] [join $text]"} } close $fp;set fp [open $learn_db w];foreach curEntry $allEntrys {puts $fp $curEntry};close $fp}proc learn_sortFile {a c d e f} { global learn_db set t_count [clock clicks -milliseconds] set fp [open $learn_db r] set allEntrys "" while {![eof $fp]} {  set curEntry [gets $fp]  if {[info exists curEntry]&amp;&amp;$curEntry!=""} {lappend allEntrys [split $curEntry " "]} } close $fp; set allEntrys [lsort -index 1 $allEntrys] set fp [open $learn_db w];foreach curEntry $allEntrys {puts $fp [join $curEntry " "]};close $fp putlog " -&gt; Done with sorting of data on the database ($learn_db)-&gt;[expr double([clock clicks -milliseconds]-$t_count)/1000]s"}bind time - "12 * * * *" learn_sortFileproc learn_filterstr { data } { regsub -all -- \\\\ $data \\\\\\\\ data regsub -all -- \\\[ $data \\\\\[ data regsub -all -- \\\] $data \\\\\] data regsub -all -- \\\} $data \\\\\} data regsub -all -- \\\{ $data \\\\\{ data regsub -all -- \\\" $data \\\\\" data return $data}proc learn_search { nick uhost hand chan args } { global learn_db set args [string tolower [lindex $args 0]] if {$args==""} {puthelp "PRIVMSG $chan :Not enough arguments.";return} set init_t [clock clicks -milliseconds] set fp [open $learn_db r];set matches "";set allEntrys "" while {![eof $fp]} {  gets $fp curEntry;if {[info exists curEntry]&amp;&amp;$curEntry!=""} {   set curEntry [split [string tolower $curEntry] " "]; set thisEntry [join [lrange $curEntry 1 end] " "]   if {[string match -nocase "*${args}*" $thisEntry]} {#    putserv "PRIVMSG #meta :worked $curEntry"    if {[lsearch $allEntrys [lindex curEntry 1]]==-1} {lappend allEntrys [lindex $curEntry 1];set allEntrys [lsort -unique $allEntrys]} } } } ;set init_t [expr double(([clock clicks -milliseconds] - $init_t))/1000] if {$allEntrys==""} {puthelp "PRIVMSG $chan :Sorry, no matches for $args on the defenition database. (\002\037${init_t}\037s)" } else {  if {[llength $allEntrys]&gt;10} {puthelp "PRIVMSG $chan :\002Too much matches.\002 Please try a more complex search."  } else {puthelp "PRIVMSG $chan :\002Found \037[llength $allEntrys]\037 matches.\002 Sorted: \037[join [lsort -dictionary $allEntrys] "\037, \037"]\037. (\002\037${init_t}\037s)"  } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8041">smash</a> — Fri Oct 26, 2007 3:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-10-26T13:27:23-04:00</updated>

		<published>2007-10-26T13:27:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77151#p77151</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77151#p77151"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77151#p77151"><![CDATA[
Put some debugging lines into the script where it's supposed to be writing to the file, something like:<br><br>putcmdlog "Writing data to file $variable-used-to-write-data"<br><br>where $variable is the name of the var in the script (since I don't have the script this is just an example)<br><br>If you want, post the proc used for writing to the script, so we can help you more.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Fri Oct 26, 2007 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[smash]]></name></author>
		<updated>2007-10-26T08:17:38-04:00</updated>

		<published>2007-10-26T08:17:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77146#p77146</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77146#p77146"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77146#p77146"><![CDATA[
I have been useing the script for some time now, and works ok for me.<br><br>!learn add egg <a href="http://egghelp.org" class="postlink">http://egghelp.org</a><br><br>FB|News  Defenition added<br><br>FragUK  + egg<br><br>FB|News egg <a href="http://egghelp.org" class="postlink">http://egghelp.org</a><br><br>eggdrop v1.6.18<br><br>Tcl version: 8.4.13<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8041">smash</a> — Fri Oct 26, 2007 8:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AudiAddict]]></name></author>
		<updated>2007-10-26T05:56:33-04:00</updated>

		<published>2007-10-26T05:56:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77141#p77141</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77141#p77141"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77141#p77141"><![CDATA[
Sorry for the late reply, have been really busy.<br><br>I checked the owner settings. They are correct.<br><br>So in short :<br><br>I'm currently using tklearn-0.5.tcl from your archives. It appeares to be a recent version from 2007.<br><br>I uploaded the file to my eggdrop/scripts folder.<br><br>I added the loader in my eggdrop.conf<br><br>Restarted eggdrop, the script get's loaded.<br><br>The eggdrop bot responds to lookups with --? word<br><br>When trying !add ! add !add word info ! add word info the eggdrop simply does not do anything.<br><br>When checking my eggdrop dir, it does make a folder called learn.db (as stated in the config file).<br><br>The file is made by eggdrop, so it seems eggdrop has the correct "write" permission.<br><br>To be safe I've tried to give the folder a chmod of -R 777. That didn't make any difference.<br><br>For some reason it's not writing data to the folder. All other learn scripts have the same problem it seems. They respond to ? commands but not when writing data.<br><br>Anybody know what I'm doing wrong? I did check the owner settings, they are set to my Name.<br><br>I'm using telnet and it doesn't display any errors while logged in. <br><br>Hopefully somebody has some feedback or a version which works for them on the latest eggdrop + unreal version.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9259">AudiAddict</a> — Fri Oct 26, 2007 5:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-08-29T12:30:12-04:00</updated>

		<published>2007-08-29T12:30:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75548#p75548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75548#p75548"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75548#p75548"><![CDATA[
<blockquote class="uncited"><div>...<br>.set errorInfo gives me What? You need ".help"</div></blockquote>Could you check the "must-be-owner" and "owner" settings within your configfile?<br><blockquote class="uncited"><div># Un-comment the next line and set the list of owners of the bot.<br># You NEED to change this setting.<br>#set owner "MrLame, MrsLame"<br>...<br># If you enable this setting, only permanent owners (owner setting) will be able to use .tcl and .set. Moreover, if you want only let permanent owners use .dump, then<br># set this to 2.<br>set must-be-owner 1</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Aug 29, 2007 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AudiAddict]]></name></author>
		<updated>2007-08-29T03:18:15-04:00</updated>

		<published>2007-08-29T03:18:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75545#p75545</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75545#p75545"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75545#p75545"><![CDATA[
<blockquote class="uncited"><div>Reading the instructions that come with any script does come in handy.<br><br>For instance, !learn TCL:<div class="codebox"><p>Code: </p><pre><code># PLEASE CHANGE THE LINE BELOW. If you don't, the file and the directory will be# createdset learn_db "data/learn.dat"</code></pre></div>It is possible you will be required to create this 'data' directory instead of relying on the script to do it.<br><br>As for a dictionary script, Rosc2112 has written an updated one and it can be found on the <a href="http://www.egghelp.org/tcl.htm" class="postlink">Tcl Archive</a> (along with <strong class="text-strong">many</strong> new and updated scripts).<br><br>To find out exactly why a script doesn't work simply do the following:<br><br>Edit your .conf file and change:<div class="codebox"><p>Code: </p><pre><code>unbind dcc n set *dcc:set</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>#unbind dcc n set *dcc:set</code></pre></div>Restart your bot.<br><br>In the party line type this:<div class="codebox"><p>Code: </p><pre><code>.set errorInfo</code></pre></div></div></blockquote>Thanks for the feedback.<br><br>I've tried creating the learn/database files manualy, dirs aswel. I don't think the file is the issue, it's just not writing the data into it.<br><br>As explained in the first post aswel, I checked the chmod rights etc. Even set it to have everyone write into it.<br><br>.set errorInfo gives me What? You need ".help"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9259">AudiAddict</a> — Wed Aug 29, 2007 3:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-08-28T19:52:11-04:00</updated>

		<published>2007-08-28T19:52:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75538#p75538</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75538#p75538"/>
		<title type="html"><![CDATA[!learn Scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75538#p75538"><![CDATA[
Reading the instructions that come with any script does come in handy.<br><br>For instance, !learn TCL:<div class="codebox"><p>Code: </p><pre><code># PLEASE CHANGE THE LINE BELOW. If you don't, the file and the directory will be# createdset learn_db "data/learn.dat"</code></pre></div>It is possible you will be required to create this 'data' directory instead of relying on the script to do it.<br><br>As for a dictionary script, Rosc2112 has written an updated one and it can be found on the <a href="http://www.egghelp.org/tcl.htm" class="postlink">Tcl Archive</a> (along with <strong class="text-strong">many</strong> new and updated scripts).<br><br>To find out exactly why a script doesn't work simply do the following:<br><br>Edit your .conf file and change:<div class="codebox"><p>Code: </p><pre><code>unbind dcc n set *dcc:set</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>#unbind dcc n set *dcc:set</code></pre></div>Restart your bot.<br><br>In the party line type this:<div class="codebox"><p>Code: </p><pre><code>.set errorInfo</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Aug 28, 2007 7:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
