logo

scripts

A bunch of scripts, some to be moved to their own repository
commit: ffb54d84ec2039a6c1452fc8af71f3d962ec7b6d
parent: 2dbbb619be31f857d37ce6715e00f01152e1ebdd
Author: lanodan <lanodan.delta@free.fr>
Date:   Sun, 23 Mar 2014 16:30:00 +0100

Add log, for links

Diffstat:

MIRCBot/IRCBot.py2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/IRCBot/IRCBot.py b/IRCBot/IRCBot.py @@ -55,6 +55,7 @@ passwd = '' load_config() +log = open('IRCBot.log', 'a') #open the log file irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #defines the socket irc.connect((server, int(port))) #connects to the server irc.send('PASS '+ passwd +'\n') @@ -94,6 +95,7 @@ while 1: #puts it in a loop title = get_title(wget) printIrc('Title: '+title) print url+', '+title + log.write(url+', '+title) except: print 'Invalid url' if text.find(':!source') != -1: