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

	<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>2006-01-02T14:31:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Stella]]></name></author>
		<updated>2006-01-02T14:31:10-04:00</updated>

		<published>2006-01-02T14:31:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58960#p58960</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58960#p58960"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58960#p58960"><![CDATA[
In line 4 of the english tcl<br><div class="codebox"><p>Code: </p><pre><code>bind pub v|o "!msg" mess_do</code></pre></div>change to<br><div class="codebox"><p>Code: </p><pre><code>bind pub o|o "!msg" mess_do</code></pre></div>Now it will write to the database file..<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>I'm not sure at this stage if "voices" can use it, but ops definately can<br><br>Stella<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7179">Stella</a> — Mon Jan 02, 2006 2:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-11-18T02:46:51-04:00</updated>

		<published>2005-11-18T02:46:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57558#p57558</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57558#p57558"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57558#p57558"><![CDATA[
BSeen creates the folder that the db file is to be created and this is the method used to create and access that file: $bs(path)bs_data.$name.<br><br>If the script you are playing with is "bypassing" an entire proc it would be that it cannot either create the folder or find the folder that the file is in. Either way, there should be a log of any error event.<br><br>As for gseen, it's simple and as it is based on BSeen it has all the functions your are used to. <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=3646">Alchera</a> — Fri Nov 18, 2005 2:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrhex]]></name></author>
		<updated>2005-11-17T23:18:37-04:00</updated>

		<published>2005-11-17T23:18:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57551#p57551</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57551#p57551"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57551#p57551"><![CDATA[
I am trying to but to tired after work today, need to get me sum sleep.<br><br>But it cant be that the script cant "open" h_message.dat.<br>Since it can READ it.<br><br>if i create the file and put "Hadace !messaging database file created" in the file. It triggers on !messages and goes through the file.<br>But it does not go through the file creation/write code when i trigger with<br>!msg nick message.<br>Something makes it pass "proc mess_write" part of the script, if i understand it correctly it would have displayed a Notice:<br><br>"Message for &lt;nickname&gt; accepted"<br><br>If i had written the syntax wrong i would have gotten:<br><br>"The right format: !msg &lt;nick&gt; &lt;message(uzenet in code)&gt;"<br><br>If something above had displayed the write to file code would have been passed through. So something makes the entire "proc mess_write" code section be bypassed.<br><br>I am using the latest "stable" tcl version.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6975">mrhex</a> — Thu Nov 17, 2005 11:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-11-17T23:00:14-04:00</updated>

		<published>2005-11-17T23:00:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57548#p57548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57548#p57548"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57548#p57548"><![CDATA[
<blockquote class="uncited"><div>Bseen is my personal favourite, well havent tried much nor have i needed to try any other seen scripts.</div></blockquote>I only use the gseen module; faster, smaller.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Nov 17, 2005 11:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrhex]]></name></author>
		<updated>2005-11-17T22:17:29-04:00</updated>

		<published>2005-11-17T22:17:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57543#p57543</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57543#p57543"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57543#p57543"><![CDATA[
It by default want to create a folder in botdir/ called data/ , well actually it wants to create the path+file.(see uzeno.tcl code snippet below).<br><div class="codebox"><p>Code: </p><pre><code>set message_db "data/h_message.dat"</code></pre></div>I joined in his channel as he posted here, and did some bugfinding with him.<br><br>When i created the file manually by, mkdir data, <br>touch data/h_message.dat<br>Then added the line as below in uzeno.tcl to see if the script could read and continue, in h_message.dat.<blockquote class="uncited"><div>Hadace !messaging database file created</div></blockquote>It is as the script is able to READ from the file but unable to write to/create the file.<br><br>it is not a write rights problem, i even made the file when creating it, rwxrwxrwx just to make shure.<br><br>I was to join in on #hadace today, to test a debug version of his script that he was gonna make, but i got RL (workrelated) hindrances.<br><br>Bseen is my personal favourite, well havent tried much nor have i needed to try any other seen scripts.<br>Has all the functions needed and supports wildcard searches on nicknames and such.<br><br>It states a database file also just as uzeno.tcl does.<br><br>named bs_data.&lt;channame&gt;<br><br>In which it stores and sort its data.<br><br>It uses this method to create the file.<div class="codebox"><p>Code: </p><pre><code>proc bs_save {} {  global bs_list userfile bs ; if {[array size bs_list] == 0} {return}  if {![string match */* $userfile]} {set name [lindex [split $userfile .] 0]} {    set temp [split $userfile /] ; set temp [lindex $temp [expr [llength $temp]-1]] ; set name [lindex [split $temp .] 0]  }  if {[file exists $bs(path)bs_data.$name]} {catch {exec cp -f $bs(path)bs_data.$name $bs(path)bs_data.$name.bak}}  set fd [open $bs(path)bs_data.$name w] ; set id [array startsearch bs_list] ; putlog "Backing up seen data..."  puts $fd "#$bs(updater)"      while {[array anymore bs_list $id]} {set item [array nextelement bs_list $id] ; puts $fd "$bs_list($item)"} ; array donesearch bs_list $id ; close $fd}</code></pre></div>Uzeno does this:<br><div class="codebox"><p>Code: </p><pre><code>proc mess_write { nick cimzett uzenet } {        global message_db        set cimzett [string tolower $cimzett]        if {![file exists $message_db]} {                file mkdir [lindex [split $message_db /] 0]                set filemuvelet [open $message_db w+]                  puts $filemuvelet "Hadace !messaging database file created"        } else {                set filemuvelet [open $message_db a]               }        set systemTime [clock seconds]        set ido [clock format $systemTime -format {%d.%m.%Y. %H.%M:}]        puts $filemuvelet "$nick $cimzett $ido [join $uzenet] "        close $filemuvelet}</code></pre></div>The tcl wiki documentation say this about "open"<br><div class="codebox"><p>Code: </p><pre><code>This command opens a file, serial port, or command pipeline and returns a channel identifier that may be used in future invocations of commands like read, puts, and close. If the first character of fileName is not | then the command opens a file: fileName gives the name of the file to open, and it must conform to the conventions described in the filename manual entry. The access argument, if present, indicates the way in which the file (or command pipeline) is to be accessed. In the first form access may have any of the following values: rOpen the file for reading only; the file must already exist. This is the default value if access is not specified. r+Open the file for both reading and writing; the file must already exist. wOpen the file for writing only. Truncate it if it exists. If it doesn't exist, create a new file. w+Open the file for reading and writing. Truncate it if it exists. If it doesn't exist, create a new file. aOpen the file for writing only. If the file doesn't exist, create a new empty file. Set the initial access position to the end of the file. a+Open the file for reading and writing. If the file doesn't exist, create a new empty file. Set the initial access position to the end of the file. </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6975">mrhex</a> — Thu Nov 17, 2005 10:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-11-16T20:43:59-04:00</updated>

		<published>2005-11-16T20:43:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57514#p57514</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57514#p57514"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57514#p57514"><![CDATA[
Did you create a folder in the <span style="text-decoration:underline">bot folder</span> named "data"?<br><br>I have never used bseen, but does it actually create a new folder for its' database or just a file?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Nov 16, 2005 8:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrhex]]></name></author>
		<updated>2005-11-16T11:15:51-04:00</updated>

		<published>2005-11-16T11:15:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57497#p57497</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57497#p57497"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57497#p57497"><![CDATA[
I joined your channel waiting for you to pop in, left you a !msg on your drop.<br><br>I shure hope we can solve this odd bug. The creation of data/h_message.dat is never performed.<br><br>I did EXACTLY as told in the TCL.<br><br>1. put the uzeno-eng.tcl in /scripts dir<br>2. added source scripts/uzeno-eng.tcl (put it at the end incase of dependencies)<br><br>Ill list the scripts i am running as there isnt anything special running its just a utility bot, doing nothing in particular.<br><br>snip from the .conf<br><div class="codebox"><p>Code: </p><pre><code>##### SCRIPTS ###### This is a good place to load scripts to use with your bot.# This line loads script.tcl from the scripts directory inside your Eggdrop's# directory. All scripts should be put there, although you can place them where# you like as long as you can supply a fully qualified path to them.#                 # source scripts/script.tclsource scripts/alltools.tclsource scripts/action.fix.tclsource scripts/egghttp.tclsource scripts/imdb.tclsource scripts/bseen1.4.2.tclsource scripts/weather3.5.7.tclsource scripts/googler1.0.tclsource scripts/bash.org-1.4.7.tclsource scripts/duke.tcl  source scripts/uzeno-eng.tcl# Use this script for Tcl and Eggdrop downwards compatibility.     # NOTE: This can also cause problems with some newer scripts.       source scripts/compat.tcl# This script provides many useful informational functions, like setting# users' URLs, e-mail address, ICQ numbers, etc. You can modify it to add# extra entries.source scripts/userinfo.tclloadhelp userinfo.help</code></pre></div>bseen is able to write/create its database:<br><div class="codebox"><p>Code: </p><pre><code>bs_data.chan</code></pre></div>And it is writing to the file.<br><br>Would be appreciated if we could solve this, since i aparently isnt the only one having problems.<br><br>The script triggers on the script commands also, did a !messages and got:<blockquote class="uncited"><div>[ tehbot (~<a href="mailto:tehbot@xxx.xx.xxxx.net">tehbot@xxx.xx.xxxx.net</a>) ] [ Recepients list ]</div></blockquote>But it has no file to read from. so it wont go on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6975">mrhex</a> — Wed Nov 16, 2005 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hadace]]></name></author>
		<updated>2005-11-16T08:16:50-04:00</updated>

		<published>2005-11-16T08:16:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57492#p57492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57492#p57492"/>
		<title type="html"><![CDATA[messaging]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57492#p57492"><![CDATA[
hiez<br><br>the <strong class="text-strong">uzeno.tcl</strong> <em class="text-italics">(messaging)</em> is avaiable in <strong class="text-strong">english</strong> <a href="http://mazsola.linuxteam.hu/tcl/uzeno/" class="postlink">here</a><br><br>about the location and access of the database file:<br><blockquote class="uncited"><div>set message_db "<strong class="text-strong">data/h_message.dat</strong>"</div></blockquote> also in the directory where your <em class="text-italics">eggdrop.conf</em> is should be the "data" dir.<br><br>my test channel: <strong class="text-strong">#hadace</strong> <em class="text-italics">@ quakenet</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6988">hadace</a> — Wed Nov 16, 2005 8:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrhex]]></name></author>
		<updated>2005-11-16T02:52:29-04:00</updated>

		<published>2005-11-16T02:52:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57489#p57489</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57489#p57489"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57489#p57489"><![CDATA[
funny [censored], i removed the start line in the .conf file, rehashed the bot and still get. this message spammed in partyline whenever someone talks in a channel the bot is in.<br><br> Tcl error [mess_join]: couldn't open "h_message.dat": no such file or directory<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6975">mrhex</a> — Wed Nov 16, 2005 2:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrhex]]></name></author>
		<updated>2005-11-15T16:44:09-04:00</updated>

		<published>2005-11-15T16:44:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57475#p57475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57475#p57475"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57475#p57475"><![CDATA[
I have kind of given up on the script.<br>Tried to work around it by rewriting some procedures.<br>I can simply not get it to work.<br><br>I like the idea of it, its a cool idea.<br><br><br>Would have been even cooler if it had worked. I mailed the Author 2 days ago about it. Pointing him/her to this thread.<br>Hopefully he pops by and drops a line or two.<br><br>Im to bad at tcl to do one meself.<br><br>The script is aviable for download both on egghelp and tclscripts, could be good to either fix or remove it from downloads.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6975">mrhex</a> — Tue Nov 15, 2005 4:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-11-15T08:23:26-04:00</updated>

		<published>2005-11-15T08:23:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57447#p57447</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57447#p57447"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57447#p57447"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set message_db "h_message.dat"</code></pre></div>I have not read the code. <br><br>The code you have should check for the existence of the db file and if not already there, create it. From that point it's usual to open for appending <br>(a) and closed once additions have been made.<br><br>As for online language translators, you might be in for some hard work mainly because much simply does not translate; especially English.<br><br>I'd suggest contacting the script author for assistance in that regard.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Nov 15, 2005 8:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrhex]]></name></author>
		<updated>2005-11-15T02:52:38-04:00</updated>

		<published>2005-11-15T02:52:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57431#p57431</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57431#p57431"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57431#p57431"><![CDATA[
<blockquote class="uncited"><div>If it's a fast "seen" function that is needed then Google for "gseen".</div></blockquote>Its not a seen script.<br>Its a message script, a kind of "delivering" service, that delivers a message to a person that is offline or away.<br>As soon as the person is active by posting or joining channel he gets the message.<br>and as far as i know there are none other doing what it does. But if there are feel free to point me to it.<br><br>And when i get it working i can translate the public output hungarian-&gt;english there are online translators that work pretty ok.<br><br>With similarities to bseen and !learn i mean the fact that they store their "knowledge" in database files.<br><br>I mailed the author, and pointed him to these board and this thread.<br>I get a feeling that the script have dependencies almost, as the error message dissapears when the file exist, but it is unable to write to the file.<br><div class="codebox"><p>Code: </p><pre><code>   close $filemuvelet    set osszesuzenet [lsort -index 1 $osszesuzenet]    set filemuvelet [open $message_db w]    foreach konkretuzenet $osszesuzenet {       puts $filemuvelet [join $konkretuzenet " "] </code></pre></div>Is the snippet i reckon is responsible for file creation.<br>I read up on the open command, it opens $message_db which is data/h_message.dat with the "w" flag. If that part of the script is ran, the file SHOULD be created, but i guess it isnt run.<br><blockquote class="uncited"><div>w<br>Open the file for writing only. Truncate it if it exists. If it doesn't exist, create a new file. </div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6975">mrhex</a> — Tue Nov 15, 2005 2:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-11-14T20:05:30-04:00</updated>

		<published>2005-11-14T20:05:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57414#p57414</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57414#p57414"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57414#p57414"><![CDATA[
... and we downloaded a script in a language we do not understand for?<br><br>If it's a fast "seen" function that is needed then Google for "gseen".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Nov 14, 2005 8:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrhex]]></name></author>
		<updated>2005-11-14T13:37:46-04:00</updated>

		<published>2005-11-14T13:37:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57400#p57400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57400#p57400"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57400#p57400"><![CDATA[
I tried some other scripts that does about the same as that one like, bseen and !learn they do indeed create a database file.<br><br>Trying to compare the different scripts to understand how the folder data and file h_message.dat is created.<br>It dont help me that the script is full of hungarian :d .<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6975">mrhex</a> — Mon Nov 14, 2005 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neilpkemp]]></name></author>
		<updated>2005-11-14T13:19:59-04:00</updated>

		<published>2005-11-14T13:19:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57397#p57397</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57397#p57397"/>
		<title type="html"><![CDATA[Hadace messaging problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57397#p57397"><![CDATA[
same ere i get nothing either :S<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6973">neilpkemp</a> — Mon Nov 14, 2005 1:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
