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

	<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>2015-04-20T17:45:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-04-20T17:45:51-04:00</updated>

		<published>2015-04-20T17:45:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103890#p103890</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103890#p103890"/>
		<title type="html"><![CDATA[invite a user list when users connect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103890#p103890"><![CDATA[
<blockquote class="uncited"><div>...<br>Only I have to modify it to suit my needs.</div></blockquote>Excellent!  <br>It wasn't meant to be all finished.   <br>I'm glad if you can use it enough to get started and modify it to your needs.<br><blockquote class="uncited"><div>The changes I plan are:<br>a) that adding a user to the list, modify the txt file, in this code must be modified manually.<br>b) also that deleting a user, it modify the file.</div></blockquote>Visit here:<br><a href="http://forum.egghelp.org/viewtopic.php?t=6885" class="postlink">http://forum.egghelp.org/viewtopic.php?t=6885</a><br><br>and you might find some info that is helpful with that.<br><br><blockquote class="uncited"><div>c) not invite all users to the same channel, but depending on your flag, the invite to the channel concerned.<br>Some users will be invited to all channels of staff, others just one.<br>I think this got work to go editing. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Have fun with your bot, and with writing your own TCL for it!<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 Apr 20, 2015 5:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-20T15:13:44-04:00</updated>

		<published>2015-04-20T15:13:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103889#p103889</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103889#p103889"/>
		<title type="html"><![CDATA[invite a user list when users connect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103889#p103889"><![CDATA[
<blockquote class="uncited"><div>Or you want it to keep monitoring when one of the friends in the list disconnected and reconnected and invite once?</div></blockquote>Yes, I want to keep monitoring when one of the friends in the list disconnected and reconnected and invite once, and if possible, if someone after being invited changing nick,  and then returns to nick that is listed, re-invite too.<br><br><strong class="text-strong">EDIT</strong>:<br><br> Dear <strong class="text-strong">caesar</strong>, code shared with <strong class="text-strong">willyw</strong> does exactly what I want.<br><br>Only I have to modify it to suit my needs.<br>The changes I plan are:<br>a) that adding a user to the list, modify the txt file, in this code must be modified manually.<br>b) also that deleting a user, it modify the file.<br>c) not invite all users to the same channel, but depending on your flag, the invite to the channel concerned.<br>Some users will be invited to all channels of staff, others just one.<br>I think this got work to go editing. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Very grateful to <strong class="text-strong">caesar</strong> and <strong class="text-strong">willyw </strong>for their important help. <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=12499">juanamores</a> — Mon Apr 20, 2015 3:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-20T14:44:57-04:00</updated>

		<published>2015-04-20T14:44:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103888#p103888</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103888#p103888"/>
		<title type="html"><![CDATA[invite a user list when users connect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103888#p103888"><![CDATA[
<blockquote class="uncited"><div>juanamores:<br><br>What network is your bot on?<br>and what is the address?</div></blockquote>Network: chathispano<br>Adress:  irc.irc-hispano.org<br>this adress connect to miranda.chathispano.com or ariel.chathispano.com<br><br>In a while I'll try the code you have shared.<br>Now I am testing the caesar´s code. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Very grateful for your interest my friend. <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=12499">juanamores</a> — Mon Apr 20, 2015 2:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-04-20T13:50:06-04:00</updated>

		<published>2015-04-20T13:50:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103887#p103887</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103887#p103887"/>
		<title type="html"><![CDATA[invite a user list when users connect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103887#p103887"><![CDATA[
juanamores:<br><br>What network is your bot on?<br>and what is the address?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Apr 20, 2015 1:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-04-20T13:38:12-04:00</updated>

		<published>2015-04-20T13:38:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103886#p103886</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103886#p103886"/>
		<title type="html"><![CDATA[invite a user list when users connect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103886#p103886"><![CDATA[
This is very rough.   There are a lot of things that can be done with it, to improve it.<br><br>It's purpose is only to demonstrate the idea, as this is what I think the original poster is asking for.<br><br>He is used to using the IRC servers built-in "watch" or "monitor" command, and I think these are handled transparently by mIRC.<br>They provide instant notification, when a nick appears or disappears on the network.<br><br>That is part of the problem with this kind of script.  It may need to be<br>customized for the particular network that it is to be used on.<br>This script works on the one network that I tested it on.<br><br>One would benefit from using:<br>/debug @debugwindow<br>in mIRC, then experimenting with sending  <br>/notify  <br>and also its variants with switches.   Then watch for the raw numerics returned.<br><br><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><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Apr 20, 2015 1:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-04-20T13:27:24-04:00</updated>

		<published>2015-04-20T13:27:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103885#p103885</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103885#p103885"/>
		<title type="html"><![CDATA[invite a user list when users connect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103885#p103885"><![CDATA[
Sure, here's the new code.<div class="codebox"><p>Code: </p><pre><code>namespace eval friendInvite { set ison(friends) {"friend_1" "friend_2"}set ison(channels) {"#channel" "#anotherChannel"}bind raw - 303 [namespace current]::replybind evnt - init-server [namespace current]::checkproc reply {from keyword text} {variable isonset friend [join [lindex [split $text :] 1]]if {$friend eq ""} returnif {[lsearch -nocase $ison(friends) $friend] eq -1} returnforeach chan $ison(channels) {if {[botonchan $chan]} {puthelp "INVITE $friend $chan"}}}proc connected init-server {variable isonforeach friend $ison(friends) {puthelp "ISON $friend"}}}</code></pre></div>It will check the friends list only once after it connected to the IRC network. Is this what you wanted? Or you want it to keep monitoring when one of the friends in the list disconnected and reconnected and invite once?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Apr 20, 2015 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-20T12:46:26-04:00</updated>

		<published>2015-04-20T12:46:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103884#p103884</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103884#p103884"/>
		<title type="html"><![CDATA[invite a user list when users connect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103884#p103884"><![CDATA[
<strong class="text-strong">caesar</strong> you are a genius!  <br>Works very well <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>The difference I noticed with mIRC, is that mIRC invites only once at user, when connecting to the network, or if after connecting changing nick, and then return to the original nickname, contained in notification list, in this case again invites.<br><br>In the code you have shared with me, inviting the same user indefinitely every x minutes.<br><br>Can you fix the code, to invite a user only once, when connected to the network, and then re-invite if you leave the network and enter again or if being on the net the nick is changed, then return to the nick is on the notification list?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Mon Apr 20, 2015 12:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-04-20T01:40:40-04:00</updated>

		<published>2015-04-20T01:40:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103880#p103880</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103880#p103880"/>
		<title type="html"><![CDATA[invite a user list when users connect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103880#p103880"><![CDATA[
If the IRC server you are connected to supports ISON then can use this to achieve what you want. On Undernet the result of a <em class="text-italics">ISON</em> will be a raw 303 reply. On what network are you connected?<br><br>On Undernet using the raw 303 I got this up and running:<div class="codebox"><p>Code: </p><pre><code>namespace eval friendInvite { set ison(friends) {"friend_1" "friend_2"}set ison(channels) {"#channel" "#anotherChannel"}bind cron - {*/5} [namespace current]::checkbind raw - 303 [namespace current]::replyproc reply {from keyword text} {variable isonset friend [join [lindex [split $text :] 1]]if {$friend ne ""} {foreach chan $ison(channels) {if {[botonchan $chan]} {puthelp "INVITE $friend $chan"}}}}proc check {min hour day month weekday} {variable isonforeach friend $ison(friends) {if {[getchanhost $friend] ne ""} {foreach chan $ison(channels) {if {![botisop $chan]} continueif {[onchan $friend $chan]} continueputhelp "INVITE $friend $chan"}} else {puthelp "ISON $friend"}}}}</code></pre></div>It dose a check every 5 minutes, but if needed can be adjusted to whatever suits your needs. mIRC dose a ISON check only when you access the notify list or hit /notify on your own.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Apr 20, 2015 1:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-04-20T00:15:18-04:00</updated>

		<published>2015-04-20T00:15:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103875#p103875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103875#p103875"/>
		<title type="html"><![CDATA[invite a user list when users connect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103875#p103875"><![CDATA[
I'm fairly sure that anything that can be done in MSL can also be pulled off in Eggdrop TCL.<br>So the answer to "You can achieve this in Tcl?" is Yes.<br><br>Have you searched the internet for a script like that yet?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon Apr 20, 2015 12:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-19T23:36:01-04:00</updated>

		<published>2015-04-19T23:36:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103873#p103873</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103873#p103873"/>
		<title type="html"><![CDATA[invite a user list when users connect server]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103873#p103873"><![CDATA[
In mSL (mIRC script language) exists a list called notify. <a href="http://www.mirchelp.net/helpfile/notify_list.htm" class="postlink">See</a><br>The notify list is like a buddy list, it notifies you when someone in your list comes on or leaves the IRC network that you are on.<br><br>I made a code in mSL, which invites a specific channels, notify list users.<br>When any user found in the guest list, connects to an IRC server, the bot invites the established channels.<br><br>You can achieve this in Tcl?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sun Apr 19, 2015 11:36 pm</p><hr />
]]></content>
	</entry>
	</feed>
