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

	<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>2020-07-06T10:53:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-07-06T10:53:12-04:00</updated>

		<published>2020-07-06T10:53:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108678#p108678</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108678#p108678"/>
		<title type="html"><![CDATA[Persist watch list in willyw's nicks watch script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108678#p108678"><![CDATA[
<blockquote class="uncited"><div>This tcl is Very usefull  ... </div></blockquote>That's good to hear.<br><br>You're welcome.<br><br><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=10420">willyw</a> — Mon Jul 06, 2020 10:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Andika]]></name></author>
		<updated>2020-07-06T06:10:53-04:00</updated>

		<published>2020-07-06T06:10:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108676#p108676</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108676#p108676"/>
		<title type="html"><![CDATA[Persist watch list in willyw's nicks watch script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108676#p108676"><![CDATA[
This tcl is Very usefull works very find on ur server. Thanks willyw<br><br>Just Changed it to this.<br><br><div class="codebox"><p>Code: </p><pre><code>#set the path/filename of file that holds the nicks to watch  (Required)set nicks_watch_file "scripts/nick.txt"</code></pre></div> <br><br>And make <strong class="text-strong">nick.txt</strong> on script folder <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br>it's Work Perfectly<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12878">Andika</a> — Mon Jul 06, 2020 6:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2016-10-16T18:56:26-04:00</updated>

		<published>2016-10-16T18:56:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105498#p105498</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105498#p105498"/>
		<title type="html"><![CDATA[Re: help help watch tcl for willyw]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105498#p105498"><![CDATA[
<blockquote class="uncited"><div>it does not work<br>I extinguish the bot and again I initiate it and its list does not keep it<br>the temporary list can be modified<br>to a permanent list is possible<br><br>that the list of added nicknames is permanent.</div></blockquote>You were already told why this happens. The file is <strong class="text-strong">NOT</strong> created by this script, <strong class="text-strong">YOU</strong> must create it and then add nicknames you want to have permanent.<br>The script even mentions this:<div class="codebox"><p>Code: </p><pre><code>proc add_to_watchlist {nick uhost handle chan text} {        putserv "watch +[lindex [split $text] 0 ]"        putserv "privmsg $chan :[lindex [split $text] 0 ] temporarily added to watch list"        putserv "privmsg $chan :Edit the watch list file, to make it permanent for next restart of bot"} </code></pre></div>If you use the !addwatch command, this will add a temp nick to the file (if the file exists), for permanent add the nicknames to the file yourself, using a text editor. <br><br>Yes, this script could be modified to use !addwatch to add a perm nick list, but if willyw has replied and not edited/updated the code, then it must be released as is; which means you would have to edit/modify the code yourself.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Sun Oct 16, 2016 6:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2016-10-16T12:22:40-04:00</updated>

		<published>2016-10-16T12:22:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105497#p105497</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105497#p105497"/>
		<title type="html"><![CDATA[Re: help help watch tcl for willyw]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105497#p105497"><![CDATA[
it does not work<br>I extinguish the bot and again I initiate it and its list does not keep it<br>the temporary list can be modified<br>to a permanent list is possible<br><br>that the list of added nicknames is permanent.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sun Oct 16, 2016 12:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2016-10-14T22:46:31-04:00</updated>

		<published>2016-10-14T22:46:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105496#p105496</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105496#p105496"/>
		<title type="html"><![CDATA[Re: help help watch tcl for willyw]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105496#p105496"><![CDATA[
<blockquote class="uncited"><div>it would be ideal that is not in temporary form</div></blockquote>This is pretty much what the script does. You have to realise that with the /watch command, it's temporary via the server, so it's temporary via the script. When the user who is added quits from the network, the watch list entry for them is cleared.<br><br>It also lets you add whatever path you wish, as you asked.<br><br>Just edit<div class="codebox"><p>Code: </p><pre><code>#set the path/filename of file that holds the nicks to watch  (Required)set nicks_watch_file "scripts/added/use_irc_watch/nicks_watch_file.txt"</code></pre></div>to reflect the exact path you wish<br><div class="codebox"><p>Code: </p><pre><code>#set the path/filename of file that holds the nicks to watch  (Required)set nicks_watch_file "./scripts/nicks_watch_file.txt"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Fri Oct 14, 2016 10:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2016-10-13T21:27:37-04:00</updated>

		<published>2016-10-13T21:27:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105485#p105485</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105485#p105485"/>
		<title type="html"><![CDATA[Re: help help watch tcl for willyw]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105485#p105485"><![CDATA[
an excellent tcl is someone please<br>it would be ideal that is not in temporary form and that is in fixed form when he adds nicknames to be notified<br>and that the current route <strong class="text-strong">scripts/added/use_irc_watch/nicks_watch_file.txt</strong><br>be modified to something shorter how for example <strong class="text-strong">scripts/nicks_watch_file.txt</strong><br><br>some friend please who helps in this wonderful tcl to be perfected<br> help please <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=8327">Arnold_X-P</a> — Thu Oct 13, 2016 9:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2016-08-19T23:48:22-04:00</updated>

		<published>2016-08-19T23:48:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105354#p105354</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105354#p105354"/>
		<title type="html"><![CDATA[Re: help help watch tcl for willyw]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105354#p105354"><![CDATA[
Hello,<br><blockquote class="uncited"><div>...<br><br>this tcl is very interesting but it has flaws<br></div></blockquote><br>I found my old copy of this script, and loaded it.<br>A quick test, and it works as designed.<br><blockquote class="uncited"><div>.. only in its way of keeping the nicknames...</div></blockquote>The script doesn't keep nicknames.<br>It says so:<div class="codebox"><p>Code: </p><pre><code># To temporarily add a nick to the watch list:  ....</code></pre></div>You keep them, by editing a text file.<br><blockquote class="uncited"><div>...in fact he does not keep them why when I begin again to the bot ready happiness or aggregate nicknames are not.</div></blockquote>When you .restart the bot,  in the text that you see in the partyline, as the bot logs in, etc.,  you will see either:<blockquote class="uncited"><div> scripts/added/use_irc_watch/nicks_watch_file.txt not found !</div></blockquote>or<blockquote class="uncited"><div>Added these nicks to watch list on IRC server : someNick anotherNick</div></blockquote><blockquote class="uncited"><div>please someone who solves this detail that the txt does not create and does not keep the list </div></blockquote>This script does not create the text file list.  It only reads it.  You create it, with your text editor.<br><blockquote class="uncited"><div>and if it is possible to change this route <br><strong class="text-strong">set nicks_watch_file "scripts/added/use_irc_watch/nicks_watch_file.txt" </strong><br>to  <strong class="text-strong">set nicks_watch_file "scripts/nicks_watch_file.txt" </strong><br></div></blockquote>Yes, it is possible.   It says so in a comment.  It says it is required.<br>Edit it.<br><br>I suspect this is what your problem is.  In that this line is not pointing to the text file that is the list of nicks.<br>Or, if it is, then the text file is empty.<br><br>Let me know if you have it working now.<br>If not, let me know what network you are using it on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Aug 19, 2016 11:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2016-08-18T23:55:40-04:00</updated>

		<published>2016-08-18T23:55:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105348#p105348</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105348#p105348"/>
		<title type="html"><![CDATA[Persist watch list in willyw's nicks watch script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105348#p105348"><![CDATA[
<a href="http://forum.egghelp.org/viewtopic.php?t=19934&amp;highlight=addwatch" class="postlink">http://forum.egghelp.org/viewtopic.php? ... t=addwatch</a><br><br>this tcl is very interesting but it has flaws only in its way of keeping the nicknames<br>in fact he does not keep them why when I begin again to the bot ready happiness or aggregate nicknames are not.<br><div class="codebox"><p>Code: </p><pre><code> # April 20, 2015# http://forum.egghelp.org/viewtopic.php?t=19934# the poster is asking to make something similar to mIRC's built in "notify" list# mIRC uses the IRC server's /watch command   or the  /monitor command# Usage:# To temporarily add a nick to the watch list:# !addwatch &lt;nick&gt;# To temporarily remove a nick from the watch list:# !remwatch &lt;nick&gt;# To display the current watch list:# !watchlist# You must create a plain text file, with one nick per line# This file will be read by the bot upon .restart and the nicks in it# will be added to the watch list held by the IRC server for this session.#set the path/filename of file that holds the nicks to watch  (Required)set nicks_watch_file "scripts/added/use_irc_watch/nicks_watch_file.txt"#set channel where you can experiment and demonstrate this script  (Required - and bot must be on this channel)set your_demo_chan #eggdrop####################################################################################################################################################bind pub - "!addwatch" add_to_watchlistbind pub - "!remwatch" remove_from_watchlistbind pub - "!watchlist" get_watch_statsbind raw - 600 rpl_logonbind raw - 601 rpl_logoffbind raw - 606 rpl_watchlist#Reference : https://www.alien.net.au/irc/irc2numerics.html#########  to read the nicks to watch, and send them to the IRC serverproc send_watch_command {nicks_watch_file} {        if {![file exists $nicks_watch_file]} {                putlog " "                putlog "$nicks_watch_file not found !"                putlog " "                return 0        }        set fp [open $nicks_watch_file "r"]        set data [read -nonewline $fp]        close $fp        set lines [split $data "\n"]        foreach n $lines {                puthelp "watch +$n"        }        putlog "Added these nicks to watch list on IRC server : $lines"}proc rpl_logon {from key text } {global your_demo_chan        #putserv "privmsg $your_demo_chan :$from       $key        $text"        putserv "privmsg $your_demo_chan :[lindex [split $text] 1 ] has logged on "        putserv "invite [lindex [split $text] 1] $your_demo_chan "}proc rpl_logoff {from key text} {global your_demo_chan        #putserv "privmsg $your_demo_chan :$from      $key         $text"        putserv "privmsg $your_demo_chan :[lindex [split $text] 1 ] has logged off"}proc rpl_watchlist {from key text} {global your_demo_chan        putserv "privmsg $your_demo_chan :Watch list of nicks is currently: [lindex [split $text :] 1]"}proc add_to_watchlist {nick uhost handle chan text} {        putserv "watch +[lindex [split $text] 0 ]"        putserv "privmsg $chan :[lindex [split $text] 0 ] temporarily added to watch list"        putserv "privmsg $chan :Edit the watch list file, to make it permanent for next restart of bot"}proc remove_from_watchlist {nick uhost handle chan text} {        putserv "watch -[lindex [split $text] 0 ]"        putserv "privmsg $chan :[lindex [split $text] 0 ] temporarily removed from watch list"        putserv "privmsg $chan :Edit the watch list file, to permanently remove for next restart of bot"}proc get_watch_stats {nick uhost handle chan text} {        putserv "watch stat"}#########  read the nicks to watch, and send them to the IRC serverbind evnt - init-server do_watch_command_wrapproc do_watch_command_wrap {type} {global nicks_watch_file        send_watch_command $nicks_watch_file}######### </code></pre></div>please someone who solves this detail that the txt does not create and does not keep the list <br><br><br>and if it is possible to change this route <br><strong class="text-strong">set nicks_watch_file "scripts/added/use_irc_watch/nicks_watch_file.txt" </strong><br>to  <strong class="text-strong">set nicks_watch_file "scripts/nicks_watch_file.txt" </strong><br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Thu Aug 18, 2016 11:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
