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

	<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>2021-03-30T19:39:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Mike05]]></name></author>
		<updated>2021-03-30T19:39:31-04:00</updated>

		<published>2021-03-30T19:39:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109689#p109689</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109689#p109689"/>
		<title type="html"><![CDATA[Public commands and channel management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109689#p109689"><![CDATA[
ComputerTech;<br><br>Thank you so much for your response and help. And thank you those who responded to my request.<br><br>Thanks guys<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12891">Mike05</a> — Tue Mar 30, 2021 7:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-03-29T15:12:01-04:00</updated>

		<published>2021-03-29T15:12:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109680#p109680</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109680#p109680"/>
		<title type="html"><![CDATA[Public commands and channel management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109680#p109680"><![CDATA[
And for your !flag code<br><div class="codebox"><p>Code: </p><pre><code>bind PUB ofmn|ofmn "!autovoice" auto:voiceproc auto:voice {nick host hand chan text} {#Sets $nick2 which will be !autovoice thisnickhere  set nick2 [lindex [split $text] 0]   #Checks if nick2 is on the channel and if not, will stop the script and return with a error messageif {![onchan $nick2 $chan]} {       puthelp "PRIVMSG $chan :I don't see $nick2 on $chan"      return    } #Grabs the handle of the nickset hand2 [nick2hand $nick2]  #sets userflag +g on specified nick on the channelchattr $hand2 +g $chan  #Message puthelp "PRIVMSG $chan :{$nick2}(with handle $hand2) now has Autovoice on $chan"   }</code></pre></div>simply use  !autovoice Nick <br><br>and it will give the nick userflag +g which will autovoice on join for the channel the command was used on.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br><br>I also added comments explaining how the code works, try reading them and see if you can understand them<br><br>Links:<br><br><a href="https://docs.eggheads.org/" class="postlink">https://docs.eggheads.org/</a>  &lt;&lt; Documentation of Eggdrop<br><br><a href="http://suninet.the-demon.de/" class="postlink">http://suninet.the-demon.de/</a>  &lt;&lt; a great basic guide to Tcl<br><br><br>Hope this helps  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Mon Mar 29, 2021 3:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-03-29T14:23:35-04:00</updated>

		<published>2021-03-29T14:23:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109679#p109679</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109679#p109679"/>
		<title type="html"><![CDATA[Public commands and channel management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109679#p109679"><![CDATA[
I personally recommend <a href="http://tclarchive.org/download.php?id=37" class="postlink">Bass's Seen script</a><br><br><br>There are however, many other's<br><br><a href="http://tclarchive.org/search.php?Seen" class="postlink">http://tclarchive.org/search.php?Seen</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Mon Mar 29, 2021 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mike05]]></name></author>
		<updated>2021-03-29T13:15:05-04:00</updated>

		<published>2021-03-29T13:15:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109678#p109678</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109678#p109678"/>
		<title type="html"><![CDATA[Public commands and channel management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109678#p109678"><![CDATA[
Friends;<br><br>Please recommend me the best seen script, and Please guide me how to set the seen private, example if a user performs seen on his/her friends the seen result must be visible to the user who perform seen, not for the whole channel.<br><br>And how to add custom alias command , example, !nbon   that should prevent users to change their nick,  example, !nboff, now users can change their nick . How to set auto voice flag. example. !flag +V Nick.<br>I would highly appreciate your help<br><br>Thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12891">Mike05</a> — Mon Mar 29, 2021 1:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mike05]]></name></author>
		<updated>2021-03-29T13:10:32-04:00</updated>

		<published>2021-03-29T13:10:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109677#p109677</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109677#p109677"/>
		<title type="html"><![CDATA[Public commands and channel management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109677#p109677"><![CDATA[
Thank you so much for your response and help.<br>Much appreciate.<br><br>Thanks again friends<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12891">Mike05</a> — Mon Mar 29, 2021 1:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2021-03-29T06:25:58-04:00</updated>

		<published>2021-03-29T06:25:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109674#p109674</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109674#p109674"/>
		<title type="html"><![CDATA[Public commands and channel management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109674#p109674"><![CDATA[
Since binds expect a certain amount of arguments it will just crash.<br><br>On top of that "my code" isn't quite what he really needs, not to mention that code has room for improvements.<br><br>Speaking about code, yours has some logic faults and won't get the expected results. For example:<div class="codebox"><p>Code: </p><pre><code>proc op:proc {nick host hand chan text} { if {![botisop $chan]} {return} if {![botisop $chan]} {return} if {[lindex [split $text] 0] == ""} {  putquick "MODE $chan +o [lindex [split $text] 0]" } else {  foreach vnick [split $text] {  pushmode $chan +o $vnick  } }} </code></pre></div>3rd if line says if first element of the list is empty (most likely is a typo and you wanted to negate not make it equal) then do +o on the first element, that is like I just said empty, else loop over the list and do +o on each element. You don't bother using onchan to see if the list contains valid elements or not, nor if any of the names already has the @.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Mar 29, 2021 6:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-03-29T05:30:47-04:00</updated>

		<published>2021-03-29T05:30:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109673#p109673</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109673#p109673"/>
		<title type="html"><![CDATA[Public commands and channel management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109673#p109673"><![CDATA[
I've a little doubt about:<div class="codebox"><p>Code: </p><pre><code>bind PUB $foo(flag) [split $foo(vtrig)] voice:proc</code></pre></div>I never heard about using a list as keyword/mask.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Mar 29, 2021 5:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-03-28T19:35:58-04:00</updated>

		<published>2021-03-28T19:35:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109671#p109671</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109671#p109671"/>
		<title type="html"><![CDATA[Public commands and channel management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109671#p109671"><![CDATA[
Try the following<br><br>SirFz's FZcommands<br><a href="https://github.com/ComputerTech312/FZcommands/archive/refs/heads/main.zip" class="postlink">Download</a><br><br>My Code CTcommands<br><a href="https://github.com/ComputerTech312/CTcommands/archive/refs/heads/main.zip" class="postlink">Download</a><br><br>caesar's code<br><a href="http://forum.egghelp.org/viewtopic.php?t=18317&amp;highlight=commands" class="postlink">Here</a><br><br>Lol'z tools <br><a href="http://tclarchive.org/download.php?id=1538" class="postlink">Download</a><br><br>or this code i just made for you <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br>Untested<div class="codebox"><p>Code: </p><pre><code>### Flags for script usageset foo(flag) "ofmn"### Voice triggersset foo(vtrig) "voice v"### Devoice triggersset foo(dvtrig) "devoice dv"### Op triggersset foo(otrig) "op o"### Deop triggersset foo(dotrig) "deop do"### Kick triggersset foo(kick) "kick k"### Ban triggers {"ban" "b"}set foo(ban) "ban b"### Kickban triggersset foo(kickb) "kickban kb"######Stop#############bind PUB $foo(flag) [split $foo(vtrig)] voice:procbind PUB $foo(flag) [split $foo(dvtrig)] devoice:procbind PUB $foo(flag) [split $foo(otrig)] op:procbind PUB $foo(flag) [split $foo(dotrig)] deop:procbind PUB $foo(flag) [split $foo(kick)] kick:procbind PUB $foo(flag) [split $foo(kickb)] kb:procbind PUB $foo(flag) [split $foo(ban)] ban:procproc voice:proc {nick host hand chan text} { if {![botisop $chan]} {return} if {[lindex [split $text] 0] == ""} {   putquick "MODE $chan +v [lindex [split $text] 0]" } else {   foreach vnick [split $text] {   pushmode $chan +v $vnick  }  }}proc devoice:proc {nick host hand chan text} { if {![botisop $chan]} {return} if {![isbotnick $nick]} {return} if {[lindex [split $text] 0] == ""} {  putquick "MODE $chan -v [lindex [split $text] 0]" } else {  foreach vnick [split $text] {  pushmode $chan -v $vnick  } }}proc op:proc {nick host hand chan text} { if {![botisop $chan]} {return} if {![botisop $chan]} {return} if {[lindex [split $text] 0] == ""} {  putquick "MODE $chan +o [lindex [split $text] 0]" } else {  foreach vnick [split $text] {  pushmode $chan +o $vnick  } }}proc deop:proc {nick host hand chan text} { if {[isbotnick $nick]} {return} if {![botisop $chan]} {return} if {[lindex [split $text] 0] == ""} {  putquick "MODE $chan -o [lindex [split $text] 0]" } else {  foreach vnick [split $text] {  pushmode $chan -o $vnick  } }}proc kick:proc {nick host hand chan text} { if {[isbotnick $nick]} {return} if {![botisop $chan]} {return} if {[lindex [split $text] 0] == ""} {  putquick "KICK $chan [lindex [split $text] 0]" } else {  foreach vnick [split $text] {  putkick $chan $vnick  } }}proc kb:proc {nick host hand chan text} { if {[isbotnick $nick]} {return} if {![botisop $chan]} {return} if {[lindex [split $text] 0] == ""} {  putquick "MODE $chan +b [lindex [split $text] 0]"  putquick "KICK $chan [lindex [split $text] 0]" } else {  foreach vnick [split $text] {  set bhost "[maskhost $vnick![getchanhost $vnick $chan] 2]"  pushmode $chan +b $bhost  putkick $chan $vnick  } }}proc ban:proc {nick host hand chan text} { if {[isbotnick $nick]} {return} if {![botisop $chan]} {return} if {[lindex [split $text] 0] == ""} {  set vnick [lindex [split $text] 0]  set bhost "[maskhost $vnick![getchanhost $vnick $chan] 2]"  putquick "MODE $chan +b $bhost" } else {  foreach vnick [split $text] {  set bhost [maskhost $vnick![getchanhost $vnick $chan] 2]  pushmode $chan +b $bhost  } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Sun Mar 28, 2021 7:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mike05]]></name></author>
		<updated>2021-03-28T16:34:40-04:00</updated>

		<published>2021-03-28T16:34:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109669#p109669</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109669#p109669"/>
		<title type="html"><![CDATA[Public commands and channel management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109669#p109669"><![CDATA[
Hello Friends;<br><br>Please recommend me the best tcl script with public commands and channel management.<br><br>Example: !k !b !kb !v !op !nb (nick ban) !flag +V Nick (autovoice).<br><br>And how to add custom commands ?<br><br>Thanks in advance. I would highly appreciate your help.<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12891">Mike05</a> — Sun Mar 28, 2021 4:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
