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

	<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>2004-09-13T15:38:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Kurupt]]></name></author>
		<updated>2004-09-13T15:38:49-04:00</updated>

		<published>2004-09-13T15:38:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40886#p40886</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40886#p40886"/>
		<title type="html"><![CDATA[this]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40886#p40886"><![CDATA[
No error but still not works<div class="codebox"><p>Code: </p><pre><code>bind raw - NICK rawNickproc rawNick {f k a} {  if {$f==$::botname} {  # new botnick is [string range $a 1 end]    foreach bind [binds $nick] {      set type [lindex $bind 0]      set flag [lindex $bind 1]      set mask [lindex $bind 2]      set proc [lindex $bind 4]      regsub -- $nick $mask $newnick newmask      unbind $type $flag $mask $proc      bind $type $flag $newmask $proc    }  }}bind evnt - init-server connect:ircproc connect:irc {type} {  global botnick settings  set cmdpfix [lindex [split $settings(binds)] 0]  foreach bind [binds ${cmdpfix}*] {    set cmd [string trimleft [lindex $bind 2] $cmdpfix]    bind pubm [lindex $bind 1] "% $botnick~${cmd}*" [lindex $bind 4]  }}bind pub - .uptime uptimeproc uptime {nick uhost hand chan args} {  global uptime {server-online};  if {[catch {exec uptime} server]} {set server "Windows/Server"}  putserv "privmsg $chan :UPTIME: [duration [expr [unixtime] - $uptime]], ON-LINE [duration [expr [unixtime] - ${server-online}]], SERVER UPTIME $server "}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5355">Kurupt</a> — Mon Sep 13, 2004 3:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-13T00:34:36-04:00</updated>

		<published>2004-09-13T00:34:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40872#p40872</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40872#p40872"/>
		<title type="html"><![CDATA[botnick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40872#p40872"><![CDATA[
This is for changing the bots nick in dcc (partyline). The script which I recommended detects if the bot changes its nick, then does what ever you want it to do.  <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=4875">awyeah</a> — Mon Sep 13, 2004 12:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-09-13T00:26:11-04:00</updated>

		<published>2004-09-13T00:26:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40871#p40871</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40871#p40871"/>
		<title type="html"><![CDATA[botnick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40871#p40871"><![CDATA[
This is the script I use, available at the <a href="http://www.egghelp.org/tcl.htm" class="postlink">tcl archives:</a><div class="codebox"><p>Code: </p><pre><code># botnick.tcl v1.0 (21 November 1999)# copyright  1999 by slennox &lt;slennox@egghelp.org&gt;# slennox's eggdrop page - http://www.egghelp.org/## This script adds a little feature that lots of people ask for - a DCC# command (for global +n users) that changes the bot's nickname.## Usage: botnick &lt;newnick&gt;## Additional Features# * You can use question marks in the newnick and the bot will substitute#   random numbers, e.g. '.botnick harry??' would create a nick like#   'harry53'.# * You can use '.botnick -altnick' to make the bot switch to its alternate#   nickname.# Don't edit below unless you know what you're doing.proc bn_dccbotnick {hand idx arg} {  global altnick nick  putcmdlog "#$hand# botnick $arg"  set newnick [lindex [split $arg] 0]  if {$newnick == ""} {    putidx $idx "Usage: botnick &lt;newnick&gt;"    return 0  }  if {$newnick == "-altnick"} {    set newnick $altnick  }  while {[regsub -- \\? $newnick [rand 10] newnick]} {continue}  putidx $idx "Changing nick to '$newnick'..."  set nick $newnick  return 0}bind dcc n botnick bn_dccbotnickputlog "Loaded botnick.tcl v1.0 by slennox"return</code></pre></div>It works perfectly, although the version I have is altered slightly, so there is a switch to return to original nick (<strong class="text-strong">.botnick -true</strong>), and to do so after a certain period of time if not returned.  Hope this helps  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Mon Sep 13, 2004 12:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-13T00:14:31-04:00</updated>

		<published>2004-09-13T00:14:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40870#p40870</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40870#p40870"/>
		<title type="html"><![CDATA[botnick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40870#p40870"><![CDATA[
Check this thread to see how to bind for botnick change outside a channel, because when you connect on init-server the bot is on no channel at that moment, it eventually takes time to join all the channels added in its .chan file.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> <br><br><a href="http://forum.egghelp.org/viewtopic.php?t=8274" class="postlink">http://forum.egghelp.org/viewtopic.php?t=8274</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Sep 13, 2004 12:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kurupt]]></name></author>
		<updated>2004-09-12T18:15:08-04:00</updated>

		<published>2004-09-12T18:15:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40862#p40862</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40862#p40862"/>
		<title type="html"><![CDATA[botnick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40862#p40862"><![CDATA[
somebody helped me and with his colaboration i got that source<br><div class="codebox"><p>Code: </p><pre><code>bind nick -|- * nick:change  proc nick:change {nick uhost hand chan newnick} {    if {[isbotnick $nick]} { foreach bind [binds $nick] { set type [lindex $bind 0] set flag [lindex $bind 1] set mask [lindex $bind 2] set proc [lindex $bind 4]  regsub -- $nick $mask $newnick newmask   unbind $type $flag $mask $proc bind $type $flag $newmask $proc }   }} bind evnt - init-server connect:irc proc connect:irc {type} {   global botnick settings    set cmdpfix [lindex [split $settings(binds)] 0]    foreach bind [binds ${cmdpfix}*] {    set cmd [string trimleft [lindex $bind 2] $cmdpfix]  bind pubm [lindex $bind 1] "% $botnick~${cmd}*" [lindex $bind 4]   }}</code></pre></div>That script works afther restart but if the botnick changed i need a new restart for working with the new nick.So maybe sombody got a ideea to modify the script or got a bether script i am realy interesed. thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5355">Kurupt</a> — Sun Sep 12, 2004 6:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
