Removed old configs and added debug to file upload
This commit is contained in:
parent
aa7bfe56ae
commit
b8b847fb88
3 changed files with 1 additions and 49 deletions
|
@ -1,30 +0,0 @@
|
||||||
[irc]
|
|
||||||
server = irc.freenode.net
|
|
||||||
port = 6667
|
|
||||||
server_password = password
|
|
||||||
channels = #keryx,#excid3
|
|
||||||
|
|
||||||
nick = Timber
|
|
||||||
nick_password = password
|
|
||||||
|
|
||||||
# Comma separated list of owner nicks
|
|
||||||
owners = excid3
|
|
||||||
|
|
||||||
[log]
|
|
||||||
# Location to store the logs
|
|
||||||
folder = logs
|
|
||||||
# Location of the stylesheet
|
|
||||||
stylesheet = conf/stylesheet.css
|
|
||||||
|
|
||||||
[format]
|
|
||||||
join = -!- <span class="join">%user%</span> [%host%] has joined %channel%
|
|
||||||
kick = -!- <span class="kick">%user%</span> was kicked from %channel% by %kicker% [%reason%]
|
|
||||||
mode = -!- mode/<span class="mode">%channel%</span> [%modes% %person%] by %giver%
|
|
||||||
nick = <span class="nick">%old%</span> is now known as <span class="nick">%new%</span>
|
|
||||||
part = -!- <span class="part">%user%</span> [%host%] has parted %channel%
|
|
||||||
pubmsg = <span class="person" style="color:%color%"><%user%></span> %message%
|
|
||||||
pubnotice = <span class="notice">-%user%:%channel%-</span> %message%
|
|
||||||
quit = -!- <span class="quit">%user%</span> has quit [%reason%]
|
|
||||||
topic = <span class="topic">%user%</span> changed topic of <span class="topic">%channel%</span> to: %topic%
|
|
||||||
action = <span class="person" style="color:%color%">* %user% %action%</span>
|
|
||||||
help = Check out http://excid3.com
|
|
|
@ -1,18 +0,0 @@
|
||||||
body {
|
|
||||||
background-color: #F8F8FF;
|
|
||||||
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; }
|
|
|
@ -206,7 +206,7 @@ class Logbot(SingleServerIRCBot):
|
||||||
full_fname = os.path.join(root, fname)
|
full_fname = os.path.join(root, fname)
|
||||||
|
|
||||||
remote_fname = "/".join(full_fname.split("/")[1:])
|
remote_fname = "/".join(full_fname.split("/")[1:])
|
||||||
print repr(remote_fname)
|
if DEBUG: print repr(remote_fname)
|
||||||
try:
|
try:
|
||||||
self.ftp.storbinary("STOR %s" % remote_fname, open(full_fname, "rb"))
|
self.ftp.storbinary("STOR %s" % remote_fname, open(full_fname, "rb"))
|
||||||
except ftplib.error_perm, e:
|
except ftplib.error_perm, e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue