File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ async def learn(self, message: discord.Message):
2828 if reply .author .id in self .config .config ["optout" ]:
2929 return
3030
31- content = qna .classes .sanitize_question (reply .clean_content + " " +
32- " " .join ([attachment .url for attachment in reply .attachments ]))
31+ content = qna .classes .sanitize_question (( reply .clean_content + " " +
32+ " " .join ([attachment .url for attachment in reply .attachments ])). strip ( ))
3333 if content + str (message .guild .id ) not in self .config .question_map .keys ():
3434 self .config .question_map .update ({content + str (message .guild .id ): qna .classes .Question (
3535 content ,
@@ -39,7 +39,7 @@ async def learn(self, message: discord.Message):
3939 reply .author .id
4040 )})
4141 response_content = (message .clean_content + " " +
42- " " .join ([attachment .url for attachment in message .attachments ]))
42+ " " .join ([attachment .url for attachment in message .attachments ])). strip ()
4343 self .config .question_map [content + str (message .guild .id )].add_response (qna .classes .Response (
4444 response_content ,
4545 message .guild .id ,
You can’t perform that action at this time.
0 commit comments