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

	<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>2013-06-02T12:59:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[delinquent]]></name></author>
		<updated>2013-06-02T12:59:53-04:00</updated>

		<published>2013-06-02T12:59:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101621#p101621</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101621#p101621"/>
		<title type="html"><![CDATA[Chanlogs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101621#p101621"><![CDATA[
and how do i activate it ? ... like .chanset +logs ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused">?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12188">delinquent</a> — Sun Jun 02, 2013 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-06-01T17:20:24-04:00</updated>

		<published>2013-06-01T17:20:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101617#p101617</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101617#p101617"/>
		<title type="html"><![CDATA[Chanlogs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101617#p101617"><![CDATA[
A script that does that<br><br>"This script makes eggdrop log its own public messages to the default channel log (logflag p).<br>Note that it assumes all sent messages actually reach the server (even through +m, +b, colorblock, ..)."<br><br>Download it from:<br><a href="http://thommey.tclhelp.net/dl/dl.htcl?id=5" class="postlink">http://thommey.tclhelp.net/dl/dl.htcl?id=5</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sat Jun 01, 2013 5:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dirty]]></name></author>
		<updated>2013-04-01T11:23:11-04:00</updated>

		<published>2013-04-01T11:23:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101338#p101338</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101338#p101338"/>
		<title type="html"><![CDATA[Chanlogs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101338#p101338"><![CDATA[
true.. you can log the messages with bind out but like thommey clearly said in that post.. it is not really compatible with the network.. what if the egg is not on the channel? what if the bot is muted? banned? etc .. the messages will still be logged even do they do not reach the channel.. so doing this correctly and really logging everything including the bot`s messages is putting the log tcl in another bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12189">dirty</a> — Mon Apr 01, 2013 11:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-04-01T08:44:31-04:00</updated>

		<published>2013-04-01T08:44:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101336#p101336</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101336#p101336"/>
		<title type="html"><![CDATA[Chanlogs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101336#p101336"><![CDATA[
<blockquote class="uncited"><div>like i told you before delinquent, only way to get the messages from bot in the log files is to setup this tcl in another bot</div></blockquote>Not so sure about that.<br><br><a href="http://forum.egghelp.org/viewtopic.php?p=89174#89174" class="postlink">http://forum.egghelp.org/viewtopic.php?p=89174#89174</a><br>and see the link:<div class="codebox"><p>Code: </p><pre><code>Backwards compatible script that logs eggdrop's own messages using bind out if available</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Apr 01, 2013 8:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dirty]]></name></author>
		<updated>2013-04-01T04:14:59-04:00</updated>

		<published>2013-04-01T04:14:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101330#p101330</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101330#p101330"/>
		<title type="html"><![CDATA[Chanlogs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101330#p101330"><![CDATA[
like i told you before delinquent, only way to get the messages from bot in the log files is to setup this tcl in another bot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12189">dirty</a> — Mon Apr 01, 2013 4:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-03-31T15:46:29-04:00</updated>

		<published>2013-03-31T15:46:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101323#p101323</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101323#p101323"/>
		<title type="html"><![CDATA[Chanlogs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101323#p101323"><![CDATA[
As far as I know, the bot Will Never trigger a pubm bind on any text sent from itself.<br>The script relies on a pubm bind to write channel text to it's log files...<div class="codebox"><p>Code: </p><pre><code>bind pubm - "#* *" logger:text</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Mar 31, 2013 3:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[delinquent]]></name></author>
		<updated>2013-03-31T13:43:01-04:00</updated>

		<published>2013-03-31T13:43:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101322#p101322</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101322#p101322"/>
		<title type="html"><![CDATA[Chanlogs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101322#p101322"><![CDATA[
i`ll post the code here .. maybe someone has a clue ..<br><div class="codebox"><p>Code: </p><pre><code>#########################################################        Eggdrop Logger 2.0 - www.mircstats.com        ##        Logging in mIRC 6.17 format. 27/04/2006       ##                                                      ##   Make sure you have created the dir 'logger(dir)'   ##                                                      ##         Created by Lanze &lt;simon@freeworld.dk&gt;        ##         Improved by zowtar &lt;zowtar@gmail.com&gt;        ##                                                      ############################################################ Configuration#;;; Where the logs will be saved.set logger(dir) "chanlogs/"#;;; Strip codes?#;;; 0 = save codes\colors#;;; 1 = no save codes\colorsset logger(strip) "1"#;;; Save by Day, Week, Month or Disable?set logger(time) "Month"# # # # # # # # # # # # # # # #   DO NOT CHANGE ANYTHING BELOW HERE   # # # # # # # # # # # # # # # #### Eventsbind join - "#* *!*@*" logger:joinbind part - "#* *!*@*" logger:partbind sign - "#* *!*@*" logger:quitbind pubm - "#* *" logger:textbind nick - "#* *" logger:nickbind kick - "#* *" logger:kickbind mode - "#* *" logger:modebind topc - "#* *" logger:topicbind raw - "333" logger:topic-authorbind ctcp - "ACTION" logger:action### Primary Commandsproc logger:join {nick uhost handle chan} {  global logger botnick  if {$nick == $botnick} {    set log "[open "$logger(dir)$chan.log" a]"    puts $log "\r"    puts $log "Session Start: [strftime "%a %b %d %T %Y"]\r"    puts $log "Session Ident: $chan\r"    puts $log "\[[strftime "%H:%M"]\] * Now talking in $chan\r"    close $log  } else {    logger:save $chan "* $nick ($uhost) has joined $chan"  }}proc logger:part {nick uhost handle chan msg} {  if {$msg == ""} {    logger:save $chan "* $nick ($uhost) has left $chan"  } else {    logger:save $chan "* $nick ($uhost) has left $chan ($msg)"  }}proc logger:quit {nick uhost handle chan reason} {  logger:save $chan "* $nick ($uhost) Quit ($reason)"}proc logger:text {nick uhost handle chan text} {  if {[isop $nick $chan] == "1"} {    set nick "@$nick"  } elseif {[ishalfop $nick $chan] == "1"} {    set nick "%$nick"  } elseif {[isvoice $nick $chan] == "1"} {    set nick "+$nick"  }  logger:save $chan "&lt;$nick&gt; $text"}proc logger:nick {nick uhost handle chan newnick} {  logger:save $chan "* $nick is now known as $newnick"}proc logger:kick {nick uhost handle chan target reason} {  logger:save $chan "* $target was kicked by $nick ($reason)"}proc logger:mode {nick uhost handle chan mode victim} {  logger:save $chan "* $nick sets mode: $mode $victim"}proc logger:topic {nick uhost handle chan topic} {  if {$nick == "*"} {    logger:save $chan "* Topic is '$topic'"  } else {    logger:save $chan "* $nick changes topic to '$topic'"  }}proc logger:topic-author {from keyword text} {  logger:save [lindex $text 1] "* Set by [lindex $text 2] on [strftime "%a %b %d %T" [lindex $text 3]]"}proc logger:action {nick uhost handle dest keyword text} {  if {[validchan $dest] == "1"} {    if {[isop $nick $dest] == "1"} {      set nick "@$nick"    } elseif {[ishalfop $nick $dest] == "1"} {      set nick "%$nick"    } elseif {[isvoice $nick $dest] == "1"} {      set nick "+$nick"    }    logger:save $dest "* $nick $text"  }}### Secondary Commandsproc logger:save {chan text} {  global logger  set log "[open "$logger(dir)$chan.log" a]"  puts $log "\[[strftime "%H:%M"]\] [logger:strip $text]\r"  close $log}### Tertiary Commandsproc logger:strip {text} {  global logger numversion  if {$logger(strip) == "1"} {    if {$numversion &gt;= "1061700"} {      set text "[stripcodes bcruag $text]"    } else {      regsub -all -- {\002,\003([0-9][0-9]?(,[0-9][0-9]?)?)?,\017,\026,\037} $text "" text    }  }  return $text}### Timeproc logger:time {} {  global logger  foreach bind [binds time] {    if {[string match "time * logger:time-save" $bind] == "1"} {      unbind time - "[lindex $bind 2]" logger:time-save    }  }  switch [string toupper $logger(time)] {    DAY {      bind time - "00 00 [strftime "%d" [expr [unixtime] + 86400]] * *" logger:time-save    }    WEEK {      bind time - "00 00 [strftime "%d" [expr [unixtime] + ((7 - [strftime "%w"]) * 86400)]] * *" logger:time-save    }    MONTH {      bind time - "00 00 01 [strftime "%m" [expr [unixtime] + ((32 - [strftime "%d"]) * 86400)]] *" logger:time-save    }  }}proc logger:time-save {minute hour day month year} {  global logger  foreach channel [channels] {    if {[file exists "$logger(dir)$channel.log"] == "1"} {      file rename -force "$logger(dir)$channel.log" "$logger(dir)${channel}_\[[strftime "%Y.%m.%d"]\].log"    }    set log "[open "$logger(dir)$channel.log" w]"    puts $log "\r"    puts $log "Session Start: [strftime "%a %b %d %T %Y"]\r"    puts $log "Session Ident: $channel\r"    puts $log "\[[strftime "%H:%M"]\] * Now talking in $channel\r"    close $log    putquick "TOPIC $channel"  }  logger:time}logger:timeputlog "TCL Logger.tcl Loaded!"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12188">delinquent</a> — Sun Mar 31, 2013 1:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[delinquent]]></name></author>
		<updated>2013-03-30T19:41:14-04:00</updated>

		<published>2013-03-30T19:41:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101312#p101312</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101312#p101312"/>
		<title type="html"><![CDATA[Chanlogs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101312#p101312"><![CDATA[
Eggdrop Logger 2.0 @ <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=1180" class="postlink">http://www.egghelp.org/cgi-bin/tcl_arch ... ad&amp;id=1180</a><br><br>the only problem is that the bots doesn`t save what he is saying on the channel ... it logs for everybody else .. but for him not ...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12188">delinquent</a> — Sat Mar 30, 2013 7:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-03-25T09:34:01-04:00</updated>

		<published>2013-03-25T09:34:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101296#p101296</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101296#p101296"/>
		<title type="html"><![CDATA[Re: Chanlogs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101296#p101296"><![CDATA[
I do this, and use:<br><br> Eggdrop Logger 2.0 - <a href="http://www.mircstats.com" class="postlink">www.mircstats.com</a> <br><br>You can find it on the TCL Archive here.<br>It has a configurable option for weekly, but I have never used it.<br><br>As is, it does not have an On/Off switch.  It simply logs all the channels.<br>I suppose you could modify it slightly.<br><br><blockquote class="uncited"><div>is its posible olso the tcl for the ftp upload ...</div></blockquote>I do it with a bash script, run on a schedule by crontab.<br><br>You can google for examples of bash scripts that will do this.<br>Here's one hit:<br><a href="http://nixcraft.com/getting-started-tutorials/13566-bash-shell-script-ftp-file-server.html" class="postlink">http://nixcraft.com/getting-started-tut ... erver.html</a><br>There are many more.<br><br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Mar 25, 2013 9:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[delinquent]]></name></author>
		<updated>2013-03-24T15:58:34-04:00</updated>

		<published>2013-03-24T15:58:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101294#p101294</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101294#p101294"/>
		<title type="html"><![CDATA[Chanlogs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101294#p101294"><![CDATA[
Hello <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>i am looking for a script to save the logs from multuiple channels (so probably would be better with .chanset +/-chanlogs) with joins/parts/quits/kicks/bans/notice/ame .. all of them ... but the logs to be made for 1 week (something like a&amp;a but for one week not one day) to be saved like $chan.log and $chan.lastweek.log ... becouse i want to put them on a ftp .. is its posible olso the tcl for the ftp upload ...<br><br>thank you in advance !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12188">delinquent</a> — Sun Mar 24, 2013 3:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
