From 70a20d08bdfeba0d528dce74b03519df1ae27229 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Thu, 31 Aug 2017 16:31:52 +0000 Subject: [PATCH] Converted tuple to string --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index b595c1e..93905bb 100644 --- a/main.py +++ b/main.py @@ -17,11 +17,11 @@ for comment in rall.stream.comments(): if match: # Extract a description of the needed person - needed = match.group(3), 'who', match.group(1), match.group(5) - print(match.group(),'\n',needed,'\n') + needed = match.group(3) + ' who ' + match.group(1) + ' ' + match.group(5) + print(match.group(),'\n',needed.title(),'\n') # Reply to the comment - #response = comment.reply( "I'll look for someone who", match.group(1), match.group(5) ) + #response = comment.reply( "I'll look for someone who", ' '.join(match.group(1,5)).lower() ) #print("Replied to comment "+comment.id+":",response.permalink()) # Post to our sub