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

	<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>2019-07-22T12:54:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[m4s]]></name></author>
		<updated>2019-07-22T12:54:15-04:00</updated>

		<published>2019-07-22T12:54:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107711#p107711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107711#p107711"/>
		<title type="html"><![CDATA[Nick specific onjoin greetings.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107711#p107711"><![CDATA[
Hello SpiKe^^!<br><br>Thanks, it's super! Everything works! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Have a nice day! <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=12672">m4s</a> — Mon Jul 22, 2019 12:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2019-07-22T10:35:57-04:00</updated>

		<published>2019-07-22T10:35:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107710#p107710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107710#p107710"/>
		<title type="html"><![CDATA[Nick specific onjoin greetings.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107710#p107710"><![CDATA[
Try replace this line...<div class="codebox"><p>Code: </p><pre><code>set say [string map [list %n% $nk %c% $ch] $got]</code></pre></div>with this edited line...<div class="codebox"><p>Code: </p><pre><code>set say [string map [list %n% \002$nk\002 %c% \002$ch\002] $got]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon Jul 22, 2019 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[m4s]]></name></author>
		<updated>2019-07-21T14:53:53-04:00</updated>

		<published>2019-07-21T14:53:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107709#p107709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107709#p107709"/>
		<title type="html"><![CDATA[Re: Nick specific onjoin greetings.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107709#p107709"><![CDATA[
<blockquote class="uncited"><div>This script is in reply to a script request from 2 days ago.<br><br>That request was deleted, but not before the script was almost done:)<br></div></blockquote>Hello!<br><br>Thanks the script works! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>May I have a request? <br>I would like to see the names (%n%) and channels (%c%) to be bold in the greetings.<br><br>Example: <br>Configuration in the file: Houdini :: Welcome back %n% : Behave yourself:)<br>Bot says: Welcome back <strong class="text-strong">Houdini</strong> : Behave yourself:)<br><br>Thank You! <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=12672">m4s</a> — Sun Jul 21, 2019 2:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2019-01-06T21:06:37-04:00</updated>

		<published>2019-01-06T21:06:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107320#p107320</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107320#p107320"/>
		<title type="html"><![CDATA[Nick specific onjoin greetings.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107320#p107320"><![CDATA[
This script is in reply to a script request from 2 days ago.<br><br>That request was deleted, but not before the script was almost done:)<br><div class="codebox"><p>Code: </p><pre><code>##################################################################### SayGreet  ver. 0.1  by SpiKe^^           www.mytclscripts.com ########################################################################################################################## 06/01/2019 ###                                                                 ## onjoin greeting script, with nick and/or chan specific greets.  ##                                                                 ## You Must create the file with all available greeting messages!  ## Each greeting message goes on its own file line.                ## The order of the lines doesn't matter. Blank lines are ignored. ## If the script finds multiple valid greets, picks one randomly.  ##                                                                 ## -Example- adding 2 script default greeting messages.            ##  Welcome to %c% : Stay &amp; Play some Trivia with us.              ##  Welcome to %c% : Use .triv to start the Trivia game.           ##                                                                 ## You can also set Nick and/or Chan Specific greeting messages.   ## -Example- adding 2 nick specific greetings (both same nick).    ##  Houdini :: Welcome back %n% : Behave yourself:)                ##  houdini :: The king has returned. Welcome back %n%             ## -Example- adding 2 channel specific default greetings.          ##  #lamechat :: [%n%] Don't be Lame. Say something witty.         ##  #lameChat :: Welcome to %c% %n% : Don't be Lame:)              ## -Example- adding 2 nick and channel specific greetings.         ##  houdini@#trivial :: The king has returned. Top trivia champ!   ##  houdini@#Trivial :: Welcome back %n% : 99583 Points Last week! ##                                                                 ####################################################################namespace eval saygreet { variable greet######################################################### - Begin Script Settings - Begin Script Settings - ##########################################################  Set the channel(s) to run this script in.  #set greet(chans) ""   ;#   ("" = all channels)  ##  Set the route/file.name to the greetings file.  #set greet(file) "scripts/greets.txt"#  Set the file line divider between nick/chan and the message.  ##  Use any string that will Never be in a greeting message.  #set greet(fdiv) "::"#  1 = Send greets by message  #  2 = Send greets by notice  #set greet(how) "1"#  1 = Send greets to channel  #  2 = Send greets to nick  #set greet(who) "1"#  Prefix all greetings with the users nick??  (1+=yes 0=no)  ##  1 = Prefix all greetings with users nick.  ##  2 = Add users nick Only if no %n% in the greet message.  #set greet(unick) "2"########################################################### - End Script Settings - End Script Settings - ###########################################################bind join - * [namespace current]::saygreetset greet(chans) [string trim $greet(chans)]if {$greet(chans) eq "" || $greet(chans) eq "*"} { set greet(_chans) ""} else {  set greet(_chans) [split [string tolower $greet(chans)]]  }if {$greet(how) ne "2"} {  set greet(how) 1  }if {$greet(who) ne "2"} {  set greet(who) 1  }if {$greet(unick) ni {0 1}} {  set greet(unick) 2  }proc saygreet {nk uh hn ch} {  variable greet  set que "puthelp"  set nklo [string tolower $nk]  ;  set chlo [string tolower $ch]  if {$greet(_chans) ne "" &amp;&amp; [lsearch -exact $greet(_chans) $chlo]&lt;0} {    return 0  }  if {[isbotnick $nk] || ![file exists $greet(file)]} {  return 0  }  set open [open $greet(file) r]  set greets [split [string trim [read $open]] \n]  close $open  set defls "" ;  set cdefls "" ;  set sayls "" ;  set csayls ""  set divider $greet(fdiv)  foreach gr $greets {  set gr [string trim $gr]    if {$gr eq ""} {  continue  }    set rest [join [lassign [split $gr] nkch div]]    set nkch [string tolower $nkch]    if {$div eq $divider} {      if {$nkch eq "!def" || $nkch eq "!default"} {        lappend defls $rest      } elseif {[string match "*,${nklo}@${chlo},*" ",${nkch},"]} {        lappend csayls $rest      } elseif {[string match "*,${nklo},*" ",${nkch},"]} {        lappend sayls $rest      } elseif {[string match "*,${chlo},*" ",${nkch},"]} {        lappend cdefls $rest      } elseif {[string match "*,@${chlo},*" ",${nkch},"]} {        lappend cdefls $rest      }    } elseif {$nkch eq $divider} {      lappend defls "$div $rest"    } else {  lappend defls $gr  }  }  if {$csayls ne ""} {  set gotls $csayls  } elseif {$sayls ne ""} {  set gotls $sayls  } elseif {$cdefls ne ""} {  set gotls $cdefls  } elseif {$defls ne ""} {  set gotls $defls  } else {  set gotls ""  }  if {$gotls eq ""} {  return 0  }  set got [lindex $gotls [rand [llength $gotls]]]  set say [string map [list %n% $nk %c% $ch] $got]  if {$greet(unick)==2 &amp;&amp; ![string match "*%n%*" $got]} {    set say "$nk : $say"  } elseif {$greet(unick)==1} {  set say "$nk : $say"  }  if {$greet(how)==2} { set how "NOTICE" } else { set how "PRIVMSG" }  if {$greet(who)==2} {  set who $nk  } else {  set who $ch  }  $que "$how $who :$say"}putlog "SayGreet ver. 0.1 Loaded."} ;## - End namespace eval - ##</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Jan 06, 2019 9:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
