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

	<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-09-04T14:54:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ORATEGOD]]></name></author>
		<updated>2023-09-04T14:54:42-04:00</updated>

		<published>2023-09-04T14:54:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112117#p112117</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112117#p112117"/>
		<title type="html"><![CDATA[Counter help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112117#p112117"><![CDATA[
<blockquote class="uncited"><div>The script isn't designed to be used with an eggdrop but to be run from shell.<br>$argv is the list of arguments sent to a script.<br>The bind is not complete (bind join - "#lobby *" greetAndCount) and the greetAndCount defintion is false (proc greetAndCount  {nick uhost handle chan} { ... })<br><br>Want some other errors ?</div></blockquote><br><br><strong class="text-strong">I understand... thank you very much for the clarification</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12869">ORATEGOD</a> — Mon Sep 04, 2023 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-09-04T13:05:52-04:00</updated>

		<published>2023-09-04T13:05:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112116#p112116</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112116#p112116"/>
		<title type="html"><![CDATA[Counter help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112116#p112116"><![CDATA[
The script isn't designed to be used with an eggdrop but to be run from shell.<br>$argv is the list of arguments sent to a script.<br>The bind is not complete (bind join - "#lobby *" greetAndCount) and the greetAndCount defintion is false (proc greetAndCount  {nick uhost handle chan} { ... })<br><br>Want some other errors ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Sep 04, 2023 1:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ORATEGOD]]></name></author>
		<updated>2023-09-04T12:07:14-04:00</updated>

		<published>2023-09-04T12:07:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112115#p112115</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112115#p112115"/>
		<title type="html"><![CDATA[Counter help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112115#p112115"><![CDATA[
<blockquote class="uncited"><div>Look at the bind statement and take it from there. If i where to guess, he asked ChatGTP to make this piece of code. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"></div></blockquote><br>Hello.... I don't know if it was written by ChatGPT, if so, could that be the error?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12869">ORATEGOD</a> — Mon Sep 04, 2023 12:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ORATEGOD]]></name></author>
		<updated>2023-09-04T12:05:27-04:00</updated>

		<published>2023-09-04T12:05:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112114#p112114</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112114#p112114"/>
		<title type="html"><![CDATA[Counter help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112114#p112114"><![CDATA[
This error is the one that shows when turning on the eggdrop<br><div class="codebox"><p>Code: </p><pre><code>can't read "argv": no such variable    while executing"lindex $argv 1"    (file "scripts/welcome.tcl" line 56)    invoked from within"source scripts/welcome.tcl"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12869">ORATEGOD</a> — Mon Sep 04, 2023 12:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2023-09-03T23:55:33-04:00</updated>

		<published>2023-09-03T23:55:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112112#p112112</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112112#p112112"/>
		<title type="html"><![CDATA[Counter help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112112#p112112"><![CDATA[
Look at the bind statement and take it from there. If i where to guess, he asked ChatGTP to make this piece of code. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Sep 03, 2023 11:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-09-03T08:12:21-04:00</updated>

		<published>2023-09-03T08:12:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112111#p112111</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112111#p112111"/>
		<title type="html"><![CDATA[Counter help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112111#p112111"><![CDATA[
lets start with : <br><br>what are u expecting it to do?<br><br>and what error does it output if any ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Sep 03, 2023 8:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ORATEGOD]]></name></author>
		<updated>2023-09-02T20:59:34-04:00</updated>

		<published>2023-09-02T20:59:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112110#p112110</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112110#p112110"/>
		<title type="html"><![CDATA[Counter help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112110#p112110"><![CDATA[
I found this counter with time and date but I can't get it to work correctly, I hope someone can help me or guide me how to correct it so that it can work<br><br><strong class="text-strong">Thank you in advance as always for your help in the forum<br><br>excuse my bad english</strong><br><br><div class="codebox"><p>Code: </p><pre><code># Script to greet new users and count their visits# Path to the counter fileset contadorFile "scripts/Lobby.txt"# Define a function to greet new users and count their visitsproc greetAndCount {nick chan} {    # Get the current date and time    set fecha [clock format [clock seconds] -format "%Y-%m-%d"]    set hora [clock format [clock seconds] -format "%H:%M:%S"]    # Increment the counter    set contador [expr {file exists $contadorFile ? [readfile $contadorFile] + 1 : 1}]    # Save the counter    writefile $contadorFile $contador    # Build the greeting message with colors and bold    set saludo "Hello, \002$nick\002! Welcome to channel \002$chan\002. The current date is: \002$fecha\002, and the current time is: \002$hora\002. This is visit number \002$contador\002 to the channel."    # Send the message to the channel    putquick "PRIVMSG $chan :$saludo"}# Function to read a fileproc readfile {filename} {    set file [open $filename]    set content [read $file]    close $file    return $content}# Function to write to a fileproc writefile {filename content} {    set file [open $filename w]    puts -nonewline $file $content    close $file}# Bind the join event to the greetAndCount function for the #Lobby channelbind join - "chan #Lobby greetAndCount"# Define the global variable `argv`global argv# Check for errors in the counter fileif {![file exists $contadorFile]} {    set contador 1}# Initialize the global variable `nick`global nickset nick ""# Assign the value of the first element of the `argv` list to the `nick` variableset nick [lindex $argv 1]putlog "=== #Lobby @ Count ==="</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12869">ORATEGOD</a> — Sat Sep 02, 2023 8:59 pm</p><hr />
]]></content>
	</entry>
	</feed>
