#!/usr/bin/python3 # See the LICENSE file for licensing information import re from string import printable nick = 'seddy' server = 'chat.freenode.net' channel = '#example' gecos = 'A text processing bot' receive = open('/tmp/' + server + '.in', 'r') send = open('/tmp/' + server + '.out', 'w') parse_msg = re.compile(channel + ' :(.*)') parse_sed = re.compile('(?