bots: Remove unwanted spaces from 'help_message' in thesaurus bot.

Remove unwanted spaces from the file contrib_bots/bots/thesaurus/thesaurus.py,
these spaces were being stripped while being written to
zulip console.
This commit is contained in:
Abhijeet Kaur 2017-05-28 04:03:20 +05:30 committed by Tim Abbott
parent 72fadda781
commit 9e653525cf

View file

@ -25,12 +25,12 @@ def get_clean_response(m, method):
return "Sorry, no result found! Please check the word." return "Sorry, no result found! Please check the word."
def get_thesaurus_result(original_content): def get_thesaurus_result(original_content):
help_message = "To use this bot, start messages with either \ help_message = ("To use this bot, start messages with either "
@mention-bot synonym (to get the synonyms of a given word) \ "@mention-bot synonym (to get the synonyms of a given word) "
or @mention-bot antonym (to get the antonyms of a given word). \ "or @mention-bot antonym (to get the antonyms of a given word). "
Phrases are not accepted so only use single words \ "Phrases are not accepted so only use single words "
to search. For example you could search '@mention-bot synonym hello' \ "to search. For example you could search '@mention-bot synonym hello' "
or '@mention-bot antonym goodbye'." "or '@mention-bot antonym goodbye'.")
query = original_content.strip().split(' ', 1) query = original_content.strip().split(' ', 1)
if len(query) < 2: if len(query) < 2:
return help_message return help_message