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

	<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>2010-02-06T16:55:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[dec]]></name></author>
		<updated>2010-02-06T11:04:06-04:00</updated>

		<published>2010-02-06T11:04:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91983#p91983</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91983#p91983"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91983#p91983"><![CDATA[
finally,<br>i got working tcl from friend of mine.<br>credit to byval/jojo for this TCL<br>script language in bahasa.<br>lot of cendol for you jojo.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br><br><div class="codebox"><p>Code: </p><pre><code>####################################################################### Uptime on Awaymsg By JoJo - #Botmaster Allnetwork# hillzx@gmail.com# Version 1.0# 3 Feb 2010######################################################################bind pub - "uptime" pub:ambiluptimeset jammulai [unixtime]set vern "3«« 1Amuni§ì C®ew 3»»1"set awaym {"Lagi PeRangZ Ma IrCopz!""belajar Bikinz Scriptz!!""BoBo NyeNyakZ!!""perGi Ke SekoLahz""Epon YaYaNkz""Mandi Kramasz""KangeN MaMa""bIkin Webz""Em Elz""bIkin Adikz""MojOk aMa yaYangz""LaGi NontOnz IteNAz""SurFinGz 17tahun.Comz""ngaskus dulu juragan""ngopi-ngopi dulu ah""olah raga malem""saatnya ikutan kuis""syuting film""cari gebetan"}proc pub:pengecekan {} {global jammulai awaym vernset jamsaatini [unixtime]set uptimesekarang [return:uptime $jammulai $jamsaatini]set readabletime [konversidurasi $uptimesekarang]set awaymsg [lindex $awaym [rand [llength $awaym]]]putserv "AWAY"putserv "AWAY :$awaymsg - \[UpTImE for $readabletime\] - $vern"timer [expr 1] pub:pengecekan}proc pub:ambiluptime { nick uhost hand chan text } {global jammulai vernset jamsaatini [unixtime]set uptimesekarang [return:uptime $jammulai $jamsaatini]set readabletime [konversidurasi $uptimesekarang]#putserv "PRIVMSG $chan :Bot mulai hidup dalam UNIXtime $jammulai"#putserv "PRIVMSG $chan :Jam saat ini dalam UNIXtime $jamsaatini"#putserv "PRIVMSG $chan :Jumlah pengurangan dalam detik : $uptimesekarang"putserv "PRIVMSG $chan :\[UpTImE for $readabletime\] - $vern"}proc return:uptime { starts ends } {set value [expr $ends - $starts]return $value}proc konversidurasi {seconds} {    set h [expr $seconds/3600]    set m [expr $seconds/60 - $h*60]    set s [expr $seconds - $m*60 - $h*3600]    return "[lindex [split $h] 0] HOuRs [lindex [split $m] 0] MiNuTes [lindex [split $s] 0] SecoNds" } set init-server {global jammulaiset jammulai [unixtime]pub:pengecekan}putlog "Uptime on Awaymsg By JoJo"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10991">dec</a> — Sat Feb 06, 2010 11:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dec]]></name></author>
		<updated>2010-01-18T06:48:57-04:00</updated>

		<published>2010-01-18T06:48:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91725#p91725</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91725#p91725"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91725#p91725"><![CDATA[
<blockquote class="uncited"><div>To know the uptime would require a script on the client side, which reads the bots away since date/time, converts this to an usable format, and compares against the clients present date/time and generates the uptime reply.</div></blockquote>hai there speechles,<br>yes.. that what i intend to do with.. can you help me with, or is there some script can showing that UPTIME replay.<br><br>what i mean for the uptime output which is come from the local machine (shell) to show how many day/hour is the bot up.<br><br>i got this from one of the other egg script cannot work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <div class="codebox"><p>Code: </p><pre><code>set notd "«« Guard Bot »»"set notc "«« Guard Bot »»"set vern "Ver. 1.2b"set awaym {"i'm away""i'm gone"}bind time -  "*0 * * * *" chk_fivebind time -  "*6 * * * *" chk_fiveproc chk_five {min h d m y} {global longer deffcatch { remain }if {![string match "**" $longer]} {set longer "$deff"}puthlp "AWAY :$longer"auto_ping "0" "0" "0" "0" "0"}proc remain {} {global botnick uptime timezone notc notd vern longer awaymset totalyear [expr [unixtime] - $uptime]if {$totalyear &gt;= 31536000} {set yearsfull [expr $totalyear/31536000]set years [expr int($yearsfull)]set yearssub [expr 31536000*$years]set totalday [expr $totalyear - $yearssub]}if {$totalyear &lt; 31536000} {set totalday $totalyearset years 0}if {$totalday &gt;= 86400} {set daysfull [expr $totalday/86400]set days [expr int($daysfull)]set dayssub [expr 86400*$days]set totalhour [expr $totalday - $dayssub]}if {$totalday &lt; 86400} {set totalhour $totaldayset days 0}if {$totalhour &gt;= 3600} {set hoursfull [expr $totalhour/3600]set hours [expr int($hoursfull)]set hourssub [expr 3600*$hours]set totalmin [expr $totalhour - $hourssub]}if {$totalhour &lt; 3600} {set totalmin $totalhourset hours 0}if {$totalmin &gt;= 60} {set minsfull [expr $totalmin/60]set mins [expr int($minsfull)]}if {$totalmin &lt; 60} {set mins 0}if {$years &lt; 1} {set yearstext ""} elseif {$years == 1} {set yearstext "$years year, "} {set yearstext "$years years, "}if {$days &lt; 1} {set daystext ""} elseif {$days == 1} {set daystext "$days day, "} {set daystext "$days days, "}if {$hours &lt; 1} {set hourstext ""} elseif {$hours == 1} {set hourstext "$hours HoUR, "} {set hourstext "$hours HoURS, "}if {$mins &lt; 1} {set minstext ""} elseif {$mins == 1} {set minstext "$mins MiNuTE"} {set minstext "$mins MiNuTES"}if {[string length $mins] == 1} {set mins "0${mins}"}if {[string length $hours] == 1} {set hours "0${hours}"}set output "${yearstext}${daystext}${hours}:${mins}"set output [string trimright $output ", "]if {[getuser "config" XTRA "AWAY"]!=""} {set longer "[lgrnd] $vern \[UpTImE $output Hrs\] ([getuser "config" XTRA "AWAY"])"} {set awaymsg [lindex $awaym [rand [llength $awaym]]]set longer "[lgrnd] $vern \[UpTImE $output Hrs\] 7(6$awaymsg7)"}}</code></pre></div>then the bot will show some information like this..<br><br>-<br>Mybots is <a href="mailto:mybot@something.to.spoof.of.com">mybot@something.to.spoof.of.com</a> * «« Guard Bot »»<br>Mybots on @#channel<br>Mybots using irc.network.net<br>Mybots is away: «« Guard Bot »» Ver. 1.2b [<strong class="text-strong">UpTImE 11 days, 03:21 Hrs</strong>] (i'am away)<br>Mybots End of /WHOIS list.<br>-<br><br>still stuck with that.. can you help me..<br>thank you so much..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10991">dec</a> — Mon Jan 18, 2010 6:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2010-01-09T09:08:17-04:00</updated>

		<published>2010-01-09T09:08:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91637#p91637</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91637#p91637"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91637#p91637"><![CDATA[
<blockquote class="uncited"><div>hai blake<br>thanks for helping me so much.<br>i've try the script but only tell the away start (ex. Away since Sat Jan 09 04:11) not the Uptime information.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"> <br>if you have another tcl which is bring me to this uptime info bot<br>mention on the away reason it would be great. <br>thank you so much *big cookie for you*   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"></div></blockquote>Here's your problem. Your away status is an IRCD response. In such, you can set a STATIC message for your away status. There is no computation done on it that could generate an uptime response. This is why the majority of scripts merely set an away since. To know the uptime would require a script on the client side, which reads the bots away since date/time, converts this to an usable format, and compares against the clients present date/time and generates the uptime reply.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Jan 09, 2010 9:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2010-01-08T21:37:11-04:00</updated>

		<published>2010-01-08T21:37:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91632#p91632</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91632#p91632"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91632#p91632"><![CDATA[
Try the forums or tcl archive for uptime scripts<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Fri Jan 08, 2010 9:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dec]]></name></author>
		<updated>2010-01-08T17:15:33-04:00</updated>

		<published>2010-01-08T17:15:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91626#p91626</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91626#p91626"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91626#p91626"><![CDATA[
hai blake<br>thanks for helping me so much.<br>i've try the script but only tell the away start (ex. Away since Sat Jan 09 04:11) not the Uptime information.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"> <br>if you have another tcl which is bring me to this uptime info bot<br>mention on the away reason it would be great. <br>thank you so much *big cookie for you*   <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=10991">dec</a> — Fri Jan 08, 2010 5:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-12-28T09:33:00-04:00</updated>

		<published>2009-12-28T09:33:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91464#p91464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91464#p91464"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91464#p91464"><![CDATA[
<blockquote class="uncited"><div>thank you so much everyone..<br>the script work great..<br><br>i need help again for my bot script..<br>when i whois the bot, the information say something like this : <br>UP|DOWN is <a href="mailto:auto@irc.mynetwork.org">auto@irc.mynetwork.org</a><br>UP|DOWN on #mychannel<br>UP|DOWN using irc.mynetwork.org<br>UP|DOWN is away: Offline..   <strong class="text-strong">[UpTImE 09:21 Hrs]</strong><br>UP|DOWN End of /WHOIS list.<br><br>i need the script for bot uptime information shown in away..<br>thank you so much..</div></blockquote>Try this script from the archive botaway.tcl<br><div class="codebox"><p>Code: </p><pre><code># botaway.tcl v1.14 [1 August 2000]# Copyright (C) 1999-2000 Teemu Hjelt &lt;temex@iki.fi&gt;## Latest version can be found from http://www.iki.fi/temex/eggdrop/ # # If you have any suggestions, questions or you want to report # bugs, please feel free to send me email to temex@iki.fi## With this script you can set your bot away.## Current DCC Commands:#    .botaway, .botback, .autoaway## Tested on eggdrop1.4.4 with TCL 7.6## Version history:# v1.00 - The very first version!# v1.01 - Added the missing commands to away-help.# v1.10 - Changed the name of this script from away.tcl to botaway.tcl #         Modified .away to .botaway, because .away was already in use.#         Now you can select is the message log either ON or OFF. You can #         also select what kind of away message do you want. Added more of #         those "stupid" away reasons, fixed some big bugs and divided settings #         in to two sections. Also fixed bug with away reasons that contain chars #         like { } [ ] $ \ " # v1.11 - Renamed the procs &amp; fixed some cosmetic things.# v1.12 - Now you can select the channels where the bot shows the away-actions.# v1.13 - Had to change time command to strftime, because v1.4.0 doesn't support#         time and date commands anymore.# v1.14 - Changed the names of the commands and the actual away time is now used.        ### General Settings ##### [0/1/2] What kind of away message do you want?# 0 - Normal# 1 - BitchX# 2 - ScrollZset ba_style 1## [0/1] Enable this is if you want the message log to be ON in the away message.# Note: This only works when ba_style is set to 1 or 2.set ba_logon 1## [0/1] Show an action on $ba_actchans when you set your bot away or back?# Note: This only works when ba_style is set to 1 or 2.set ba_showaction 1## What users can set the bot away/back and enable/disable AutoAway?set ba_flag "m"## On what channels do you want to show the away-actions?# Note: Set this to "" to show the away-actions on all channels.set ba_actchans "#lamest #botcentral"### Autoaway Settings ##### [0/1] Enable Autoaway?set ba_autoaway 1## [0/1] Show an action on $ba_actchans when autoaway sets your bot away or back?# Note: This only works when ba_style is set to 1 or 2.set ba_autoaction 0## [0/1] Enable this if you want the bot to log when it was set away or back by autoaway.set ba_autolog 1## [0/1] Enable this if you want the autoaway to randomly choose whether it sets your bot away or back.set ba_rand 1## [0/1] Enable this if you want to have a random interval for autoaway.set ba_randint 1## What is the maximum time of waiting before setting away in random interval (mins)?set ba_maxdelay 40## What is the minimum time of waiting before setting away in random interval (mins)?set ba_mindelay 5## If you haven't enabled $ba_randint then what interval do you want to use (mins)? set ba_interval 40 ###### You don't need to edit below this ######### Misc Things ###set ba_ver "1.14"if {![info exists ba_isaway]} { set ba_isaway 0 }if {![info exists ba_awaytime]} { set ba_awaytime 0 }### Random AwayReasons ###set ba_reasons {"Auto-Away after 10 mins""Auto-Away after 20 mins""Automatically set away""Eating""Gone""Not here""Not here. Use e-mail.""Not here. Use snail mail.""Somewhere""Coming back soon""Watching TV""Listening to radio""Listening to records""Reading""Surfing""Surfing in the web.""Sleeping""idling""Doing homeworks""Taking a bath""Cleaning room""Playing guitar""Playing piano""Playing tennis""Playing basketball""Playing badminton""Playing ice-hockey""Go away!""Don't disturb me!""err..."}### Bindings ###bind dcc $ba_flag autoaway dcc:ba_autoawaybind dcc $ba_flag botaway dcc:ba_botawaybind dcc $ba_flag botback dcc:ba_botback### Main Procs ###proc dcc:ba_autoaway {hand idx arg} {global botnick ba_ver ba_autoawayset option [string tolower [lindex $arg 0]]putcmdlog "#$hand# autoaway $arg"switch -exact -- $option {"" {if {$ba_autoaway} {putidx $idx "Autoaway is enabled."putidx $idx "You can disable it by typing: .autoaway -disable"} else {putidx $idx "Autoaway is disabled."putidx $idx "You can enable it by typing: .autoaway -enable"}}"-enable" {if {!$ba_autoaway} {ba_stopauto ba_startauto set ba_autoaway 1putidx $idx "Autoaway enabled." } else {putidx $idx "Autoaway is already enabled."}}"-disable" {if {$ba_autoaway} {ba_stopautoset ba_autoaway 0putidx $idx "Autoaway disabled." } else {putidx $idx "Autoaway is already disabled."}}"default" { putidx $idx "Usage: .autoaway \[-enable/-disable\]" }}}proc dcc:ba_botaway {hand idx arg} {global botnick ba_reasons ba_autoaway ba_showactionset reason [join [lrange [split $arg] 0 end]]putcmdlog "#$hand# botaway $arg"if {$reason == ""} { set reason [lindex $ba_reasons [rand [llength $ba_reasons]]] }set reason [ba_getreason $reason]if {$ba_autoaway} { ba_stopauto }if {$ba_showaction} { ba_awayaction $reason }        putidx $idx "$botnick was set away - $reason"ba_setaway $reason}proc dcc:ba_botback {hand idx arg} {global botnick ba_autoaway ba_showaction ba_awaytimeputcmdlog "#$hand# botback $arg"if {$ba_autoaway} { ba_startauto }if {$ba_showaction} { ba_backaction }if {$ba_awaytime == 0} {        putidx $idx "$botnick was set back."} else {        putidx $idx "$botnick was set back. Bot was away [ba_duration [expr [unixtime] - $ba_awaytime]]"}ba_setback}### Other Procs ###proc ba_awayaction {reason} {global ba_style ba_actchansif {$ba_style == 1} { foreach chan [channels] { if {($ba_actchans != "") &amp;&amp; ([lsearch -exact [split [string tolower $ba_actchans]] [string tolower $chan]] == -1)} { continue }putserv "PRIVMSG $chan :\001ACTION $reason\001" } } elseif {$ba_style == 2} { foreach chan [channels] { if {($ba_actchans != "") &amp;&amp; ([lsearch -exact [split [string tolower $ba_actchans]] [string tolower $chan]] == -1)} { continue }putserv "PRIVMSG $chan :\001ACTION is away. $reason\001" } }}proc ba_backaction {} {global ba_style ba_actchans ba_awaytimeif {$ba_style == 1} {set awaytime [ba_duration [expr [unixtime] - $ba_awaytime]]foreach chan [channels] {if {($ba_actchans != "") &amp;&amp; ([lsearch -exact [split [string tolower $ba_actchans]] [string tolower $chan]] == -1)} { continue }putserv "PRIVMSG $chan :\001ACTION is back from the dead. Gone $awaytime\001" } } elseif {$ba_style == 2} { foreach chan [channels] { if {($ba_actchans != "") &amp;&amp; ([lsearch -exact [split [string tolower $ba_actchans]] [string tolower $chan]] == -1)} { continue }putserv "PRIVMSG $chan :\001ACTION is back. \002What was going on ?\002 \[SZ\002off\002\]\001" } }}proc ba_setaway {reason} {global ba_style ba_isaway ba_awaytimeif {$ba_style == 2} { append reason "  Away since [strftime "%a %b %d %H:%M"]" }set ba_awaytime [unixtime]set ba_isaway 1putserv "AWAY :$reason"}proc ba_setback { } {global ba_isaway ba_awaytimeset ba_awaytime 0set ba_isaway 0putserv "AWAY :"}proc ba_doaway { } {global botnick ba_reasons ba_rand ba_isaway ba_autoaction ba_autolog ba_awaytimeset reason [ba_getreason [lindex $ba_reasons [rand [llength $ba_reasons]]]]if {$ba_rand} { if {[rand 2]} {if {!$ba_isaway} { if {$ba_autoaction} { ba_awayaction $reason }        if {$ba_autolog} { putlog "botaway: $botnick was set away - $reason" } ba_setaway $reason}} else {if {$ba_isaway} {if {$ba_autoaction} { ba_backaction }if {$ba_autolog} { if {$ba_awaytime == 0} {        putlog "$botnick was set back."} else {        putlog "$botnick was set back. Bot was away [ba_duration [expr [unixtime] - $ba_awaytime]]"}}ba_setback }}} else { if {!$ba_isaway} { if {$ba_autoaction} { ba_awayaction $reason }        if {$ba_autolog} { putlog "botaway: $botnick was set away - $reason" } ba_setaway $reason} else { if {$ba_autoaction} { ba_backaction }if {$ba_autolog} { if {$ba_awaytime == 0} {        putlog "$botnick was set back."} else {        putlog "$botnick was set back. Bot was away [ba_duration [expr [unixtime] - $ba_awaytime]]"}}ba_setback}}ba_startauto}proc ba_startauto { } {global ba_randint ba_interval ba_maxdelay ba_mindelayif {![string match "*ba_doaway*" [timers]]} {if {$ba_randint} { timer [expr [rand $ba_maxdelay] + $ba_mindelay +1] ba_doaway } else {timer $ba_interval ba_doaway}}}proc ba_stopauto { } {foreach timer [timers] {if {[string match "*ba_doaway*" $timer]} { killtimer [lindex $timer 2]}}}proc ba_duration {seconds} {set h [expr $seconds/3600]set m [expr $seconds/60 - $h*60] set s [expr $seconds - $m*60 - $h*3600]return "[lindex [split $h] 0] hrs [lindex [split $m] 0] min [lindex [split $s] 0] secs"}proc ba_getreason {reason} {global ba_style ba_logonif {($ba_style == 1) &amp;&amp; ($ba_logon)} { set reason "is away: (${reason}) \[\002BX\002-MsgLog On\]" }if {($ba_style == 1) &amp;&amp; (!$ba_logon)} { set reason "is away: (${reason}) \[\002BX\002-MsgLog Off\]" }if {($ba_style == 2) &amp;&amp; ($ba_logon)} { set reason "\002${reason}\002 \[SZ\002on\002\]" }if {($ba_style == 2) &amp;&amp; (!$ba_logon)} { set reason "\002${reason}\002 \[SZ\002off\002\]" }return $reason}### End ###if {$ba_autoaway} { ba_startauto }putlog "TCL loaded: botaway.tcl v$ba_ver by Sup &lt;temex@iki.fi&gt;" </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Mon Dec 28, 2009 9:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dec]]></name></author>
		<updated>2009-12-28T03:37:37-04:00</updated>

		<published>2009-12-28T03:37:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91462#p91462</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91462#p91462"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91462#p91462"><![CDATA[
thank you so much everyone..<br>the script work great..<br><br>i need help again for my bot script..<br>when i whois the bot, the information say something like this : <br>UP|DOWN is <a href="mailto:auto@irc.mynetwork.org">auto@irc.mynetwork.org</a><br>UP|DOWN on #mychannel<br>UP|DOWN using irc.mynetwork.org<br>UP|DOWN is away: Offline..   <strong class="text-strong">[UpTImE 09:21 Hrs]</strong><br>UP|DOWN End of /WHOIS list.<br><br>i need the script for bot uptime information shown in away..<br>thank you so much..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10991">dec</a> — Mon Dec 28, 2009 3:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dec]]></name></author>
		<updated>2009-12-18T16:47:33-04:00</updated>

		<published>2009-12-18T16:47:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91371#p91371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91371#p91371"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91371#p91371"><![CDATA[
thank you so much all..<br>script work great.. nice work for all of you..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10991">dec</a> — Fri Dec 18, 2009 4:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-12-05T14:06:07-04:00</updated>

		<published>2009-12-05T14:06:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91210#p91210</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91210#p91210"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91210#p91210"><![CDATA[
Have changed the above to your recommendations thanks for the input <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=10512">blake</a> — Sat Dec 05, 2009 2:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-12-05T13:56:53-04:00</updated>

		<published>2009-12-05T13:56:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91209#p91209</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91209#p91209"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91209#p91209"><![CDATA[
No blame being thrown here, simply asking the questions.<br><br>In any case, if you simply wish to use whatever the user writes after the away command as the away-reason, use $arg instead of $reason:<div class="codebox"><p>Code: </p><pre><code>proc cmd:away {nick uhost hand arg} {  putserv "AWAY :$arg"}</code></pre></div>You should consider adding some security checks to only allow trusted people to use the command (should make for a good next step).<br><br>And speechles, I did cover the list part :p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Dec 05, 2009 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-12-05T13:50:23-04:00</updated>

		<published>2009-12-05T13:50:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91208#p91208</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91208#p91208"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91208#p91208"><![CDATA[
Edit: nml375 beat me to a few things.. but he missed a few as well..<br><div class="codebox"><p>Code: </p><pre><code>set reason [lrange [split $arg] 0 end]</code></pre></div>The code above is pointless, and will expose list bracings because it's also flawed. You forgot to [join] the list which [lrange] returns. If you want the entire line of user input, then just use $arg. There is no need to put all this extra superfluous code around it<div class="codebox"><p>Code: </p><pre><code>set reason $arg</code></pre></div>This part also caught my attention...<div class="codebox"><p>Code: </p><pre><code>  set username [lrange [split $arg] 0 end]   putserv "AWAY"  puthelp "NOTICE $nick $username Is no longer marked as away" </code></pre></div>What is the purpose of username? It's also superfluous, so instead make it like below.<div class="codebox"><p>Code: </p><pre><code>putserv "AWAY"puthelp "NOTICE $nick :$::botnick is no longer marked as away"</code></pre></div>You cannot set the status of another user to back, only yourself, ie. the bot. The addition of time is also easily doable, but this would involve giving public away messages with timers which I personally abhor.<br><br>You may also want to look at <a href="http://forum.egghelp.org/viewtopic.php?t=16022&amp;start=27" class="postlink"><strong class="text-strong">this post</strong></a> as well for reading away messages automatically.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Dec 05, 2009 1:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-12-05T13:46:02-04:00</updated>

		<published>2009-12-05T13:46:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91207#p91207</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91207#p91207"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91207#p91207"><![CDATA[
I wouldnt have a clue im a begginer at tcl and thats saying something its just something i put together and tested on my own eggy and it worked<br><br>cant blame a begginer for trying<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Dec 05, 2009 1:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-12-05T13:40:51-04:00</updated>

		<published>2009-12-05T13:40:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91206#p91206</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91206#p91206"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91206#p91206"><![CDATA[
blake,<br>You probably want to prefix the message of the notice command with a :<br>Also, I don't see why you use [lrange [split $arg] 0 end].<br>lrange with indexes 0 and end would only return the actual list you started with, and I'm not sure why you convert $arg into a list in the first place either...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Dec 05, 2009 1:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-12-05T14:03:29-04:00</updated>

		<published>2009-12-05T13:37:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91205#p91205</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91205#p91205"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91205#p91205"><![CDATA[
This will partially do what you want im not sure how to set output time maybe someone else can add that<br><div class="codebox"><p>Code: </p><pre><code>bind msg -|- away cmd:awaybind msg -|- return cmd:returnproc cmd:away {nick uhost hand arg} {  set reason $arg    putserv "AWAY :$arg"}proc cmd:return {nick uhost hand arg} {   putserv "AWAY"   puthelp "NOTICE $nick :$::botnick is no longer marked as away"}</code></pre></div>replace this with the flags you require<br> <div class="codebox"><p>Code: </p><pre><code>bind msg -|- away cmd:awaybind msg -|- return cmd:return</code></pre></div>Commands work in private message to your bot<br>ie away Gone fishing -sets your away status<br><br>return This will set your bot as no longer away<br><br>Code changed due to recommendations of nml and speechless<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Dec 05, 2009 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dec]]></name></author>
		<updated>2010-02-06T16:55:25-04:00</updated>

		<published>2009-11-26T16:22:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91077#p91077</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91077#p91077"/>
		<title type="html"><![CDATA[[SOLVE] request script - away with output time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91077#p91077"><![CDATA[
could someone help me with this script..<br>away : go fisihing for 2 Days 2 Hours 33 Minutes<br>and also with multiaway messages..<br>thank you so much.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10991">dec</a> — Thu Nov 26, 2009 4:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
