diff --git a/conf/stylesheet.css b/conf/stylesheet.css index ae84841..3468ee2 100644 --- a/conf/stylesheet.css +++ b/conf/stylesheet.css @@ -3,22 +3,16 @@ body { font-family: Fixed, monospace; font-size: 13px; } - h1 { font-family: sans-serif; font-size: 24px; text-align: center; } - a, .time { color: #525552; text-decoration: none; } - a:hover, .time:hover { text-decoration: underline; } - .person { color: #DD1144; } - .join, .part, .quit, .kick, .mode, .topic, .nick { color: #42558C; } - .notice { color: #AE768C; } \ No newline at end of file diff --git a/logbot.py b/logbot.py index ae11729..804bd24 100644 --- a/logbot.py +++ b/logbot.py @@ -32,267 +32,261 @@ __license__ = "GPL2" import os -import os.path -import shutil - -from ConfigParser import ConfigParser -from optparse import OptionParser from time import strftime -from hashlib import md5 -from irclib import nm_to_n +try: + from hashlib import md5 +except: + import md5 + from ircbot import SingleServerIRCBot +from irclib import nm_to_n +### Configuration options + +DEBUG = False + +SERVER = "irc.freenode.net" +PORT = 6667 +SERVER_PASS = None +CHANNELS=["#keryx"] +NICK = "timber" +NICK_PASS = None + +default_format = { + "action" : '* %user% %message%', + "help" : 'Check out http://excid3.com', + "join" : '-!- %user% [%host%] has joined %channel%', + "kick" : '-!- %user% was kicked from %channel% by %kicker% [%reason%]', + "mode" : '-!- mode/%channel% [%modes% %person%] by %giver%', + "nick" : '%old% is now known as %new%', + "part" : '-!- %user% [%host%] has parted %channel%', + "pubmsg" : '<%user%> %message%', + "pubnotice" : '-%user%:%channel%- %message%', + "quit" : '-!- %user% has quit [%message%]', + "topic" : '%user% changed topic of %channel% to: %message%', +} + html_header = """
-