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

	<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>2012-02-29T14:50:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[antiemp]]></name></author>
		<updated>2012-02-29T14:50:42-04:00</updated>

		<published>2012-02-29T14:50:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98907#p98907</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98907#p98907"/>
		<title type="html"><![CDATA[Script to access logs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98907#p98907"><![CDATA[
<a href="http://sourceforge.net/projects/logs2html/" class="postlink">http://sourceforge.net/projects/logs2html/</a> seems to handle problem 1)<br><br>now just needing to look into problem 2)<br><br>also need to add problem 3) which is:<br>user should be able to request parts of a log to be private messaged<br><br>for example:<br>!logs &lt;date&gt; &lt;last|first&gt; &lt;number&gt;<br><br>so if user sends<br>!logs 2011-01-23 last 5<br><br>bot returns the last 5 lines spoken from the log file, with settings for max lines returnable and a default<br><br>if default line count is 15, then to get last 15 lines the user would send<br>!logs 2011-01-23 last<br><br>it would be nice to also allow the user to omit the date and have today set as the default<br>!logs last<br>would return the last 15 (default) lines of today's log<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11927">antiemp</a> — Wed Feb 29, 2012 2:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[antiemp]]></name></author>
		<updated>2012-02-29T11:18:57-04:00</updated>

		<published>2012-02-29T11:18:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98905#p98905</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98905#p98905"/>
		<title type="html"><![CDATA[Script to access logs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98905#p98905"><![CDATA[
If this already exists, please point me in the right direction.<br><br>We currently keep all logs for a certain channel. We would like to have those logs accessible by the users. Two things need to happen.<br><br>1) Expose logs via http<br>2) Access logs via bot commands<br><br>For 1) we could simply point our http server to the logs folder and serve the files directly. If there are other solutions to this that are better, please advise.<br><br>For 2), we would like the following skeleton command:<br>!logs &lt;date&gt;<br><br>The &lt;date&gt; could be precise or fuzzy.  Here are some examples:<br>!logs 2012-01-23<br>!logs Jan 23<br>!logs yesterday<br>!logs 1 week ago<br><br>Starting with precise dates should be easier for initial implementation, fuzziness can be added later.<br><br>The command would alert the bot, the bot would process the date and return an URL to the appropriate log file via private or public message to the user inputting the command.<br><br>If something like this already exists, please advise.<br><br>Thank you for your patience in reading this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11927">antiemp</a> — Wed Feb 29, 2012 11:18 am</p><hr />
]]></content>
	</entry>
	</feed>
