mirror of https://github.com/zulip/zulip.git
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:
parent
dbe5a65378
commit
af4750799c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue