No description
Find a file
2017-06-04 17:54:02 +02:00
example_logs Version bump and added example log file 2011-10-22 11:15:10 -05:00
static Rewrite to use flask and peewee 2017-06-04 17:54:02 +02:00
templates Rewrite to use flask and peewee 2017-06-04 17:54:02 +02:00
.gitignore Ignore .pyc files 2010-10-15 12:00:02 -05:00
Db.py Rewrite to use flask and peewee 2017-06-04 17:54:02 +02:00
ircbot.py Added irclib back in and topic/nick changes 2010-02-13 19:57:40 -06:00
irclib.py Added irclib back in and topic/nick changes 2010-02-13 19:57:40 -06:00
LICENSE first commit 2009-11-28 19:44:56 -06:00
logbot.py Rewrite to use flask and peewee 2017-06-04 17:54:02 +02:00
pullrequest.py Only show new PRs, and include issue URL 2017-06-01 15:39:08 +02:00
README.md Update master 2012-06-11 19:17:48 -05:00

LogBot 0.4.2

Written by Chris Oliver chris@excid3.com

Many thanks to Filip Slagter for his contributions.

Usage

LogBot requires Python 2. It is NOT compatible with Python 3. Configuration is done inside logbot.py.

python logbot.py

Example logs at https://raw.github.com/excid3/logbot/master/example_logs/2011-10-22.html

Channels with localised time

LogBot now also supports having localised time on a per channel basis using the pytz library, allowing you to have the logs of specific channels use different timezones. Installing pytz should be as simple as running easy_install --upgrade pytz, see http://pytz.sourceforge.net/#installation for details. Don't worry, if you don't have pytz installed, LogBot will continue to show the logs timestamped with your system's localtime as it used to.

Next you can create a simple text file at ~/.logbot-channel_locations.conf (or wherever CHANNEL_LOCATIONS_FILE in logbot.py points to). On each line you can now specify a channel name, and the timezone location of which it should use the timezone offset, separated by a space. Example:

#excid3 America/Chicago
#netherlands Europe/Amsterdam
#aloha US/Hawaii
#space UTC

Any channel not specified in this file will use the default timezone as specified in DEFAULT_TIMEZONE, which defaults to 'UTC'.

If you want to see a list of all possible timezone location names you can use, run:

python -c 'import pytz;print pytz.all_timezones'