From 6e8cc1681e22982d1c70630a7017996eefa8da3f Mon Sep 17 00:00:00 2001 From: Thomas Mannay Date: Tue, 23 Jan 2018 18:51:25 +0000 Subject: [PATCH] Overall cleanup --- seddy.py | 112 ++++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 60 insertions(+), 52 deletions(-) diff --git a/seddy.py b/seddy.py index 9581d35..5e029fe 100644 --- a/seddy.py +++ b/seddy.py @@ -7,8 +7,8 @@ server = 'chat.freenode.net' channel = '#example' gecos = 'A text processing bot' -receive = open('/tmp/' + server + '.in', 'r') -send = open('/tmp/' + server + '.out', 'w') +receive = '/tmp/{0}.in'.format(server) +send = '/tmp/{0}.out'.format(server) parse_msg = re.compile(channel + ' :(.*)') parse_sed = re.compile('(?