mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	onboarding: Update Welcome Bot's responses to commands.
This commit is contained in:
		@@ -143,24 +143,29 @@ and edit your [profile information](/help/edit-your-profile).
 | 
				
			|||||||
""")
 | 
					""")
 | 
				
			||||||
    elif human_response_lower == "theme":
 | 
					    elif human_response_lower == "theme":
 | 
				
			||||||
        return _("""
 | 
					        return _("""
 | 
				
			||||||
Go to [Preferences](#settings/preferences) to [switch between the light and dark themes](/help/dark-theme),
 | 
					You can switch between [light and dark theme](/help/dark-theme), [pick your
 | 
				
			||||||
[pick your favorite emoji theme](/help/emoji-and-emoticons#change-your-emoji-set),
 | 
					favorite emoji set](/help/emoji-and-emoticons#change-your-emoji-set), [change
 | 
				
			||||||
[change your language](/help/change-your-language), and make other tweaks
 | 
					your language](/help/change-your-language), and otherwise customize your Zulip
 | 
				
			||||||
to your Zulip experience.
 | 
					experience in your [Preferences](#settings/preferences).
 | 
				
			||||||
""")
 | 
					""")
 | 
				
			||||||
    elif human_response_lower in ["stream", "streams", "channel", "channels"]:
 | 
					    elif human_response_lower in ["stream", "streams", "channel", "channels"]:
 | 
				
			||||||
        return _("""
 | 
					        return _("""
 | 
				
			||||||
In Zulip, channels [determine who gets a message]({help_link}).
 | 
					Channels organize conversations based on who needs to see them. For example,
 | 
				
			||||||
 | 
					it's common to have a channel for each team in an organization.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Browse and subscribe to channels]({settings_link}).
 | 
					[Browse and subscribe to channels]({settings_link}).
 | 
				
			||||||
""").format(help_link="/help/introduction-to-channels", settings_link="#channels/all")
 | 
					""").format(help_link="/help/introduction-to-channels", settings_link="#channels/all")
 | 
				
			||||||
    elif human_response_lower in ["topic", "topics"]:
 | 
					    elif human_response_lower in ["topic", "topics"]:
 | 
				
			||||||
        return _("""
 | 
					        return _("""
 | 
				
			||||||
In Zulip, topics [tell you what a message is about](/help/introduction-to-topics).
 | 
					[Topics](/help/introduction-to-topics) summarize what each conversation in Zulip
 | 
				
			||||||
They are light-weight subjects, very similar to the subject line of an email.
 | 
					is about. You can read Zulip one topic at a time, seeing each message in
 | 
				
			||||||
 | 
					context, no matter how many other conversations are going on.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Check out [Recent conversations](#recent) to see what's happening!
 | 
					When you start a conversation, label it with a new topic. For a good topic name,
 | 
				
			||||||
You can return to this conversation by clicking "Direct messages" in the upper left.
 | 
					think about finishing the sentence: “Hey, can we chat about…?”
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Check out [Recent conversations](#recent) for a list of topics that are being
 | 
				
			||||||
 | 
					discussed.
 | 
				
			||||||
""")
 | 
					""")
 | 
				
			||||||
    elif human_response_lower in ["keyboard", "shortcuts", "keyboard shortcuts"]:
 | 
					    elif human_response_lower in ["keyboard", "shortcuts", "keyboard shortcuts"]:
 | 
				
			||||||
        return _("""
 | 
					        return _("""
 | 
				
			||||||
@@ -171,12 +176,11 @@ Press `?` any time to see a [cheat sheet](#keyboard-shortcuts).
 | 
				
			|||||||
""")
 | 
					""")
 | 
				
			||||||
    elif human_response_lower in ["formatting", "message formatting"]:
 | 
					    elif human_response_lower in ["formatting", "message formatting"]:
 | 
				
			||||||
        return _("""
 | 
					        return _("""
 | 
				
			||||||
Zulip uses [Markdown](/help/format-your-message-using-markdown),
 | 
					You can **format** *your* `message` using the handy formatting buttons, or by
 | 
				
			||||||
an intuitive format for **bold**, *italics*, bulleted lists, and more.
 | 
					typing your formatting with Markdown.
 | 
				
			||||||
Click [here](#message-formatting) for a cheat sheet.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
Check out our [messaging tips](/help/messaging-tips) to learn
 | 
					Check out the [cheat sheet](#message-formatting) to learn about spoilers, global
 | 
				
			||||||
about emoji reactions, code blocks and much more!
 | 
					times, and more.
 | 
				
			||||||
""")
 | 
					""")
 | 
				
			||||||
    elif human_response_lower in ["help", "?"]:
 | 
					    elif human_response_lower in ["help", "?"]:
 | 
				
			||||||
        return _("""
 | 
					        return _("""
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -78,10 +78,10 @@ class TutorialTests(ZulipTestCase):
 | 
				
			|||||||
        for content in messages:
 | 
					        for content in messages:
 | 
				
			||||||
            self.send_personal_message(user, bot, content)
 | 
					            self.send_personal_message(user, bot, content)
 | 
				
			||||||
            expected_response = (
 | 
					            expected_response = (
 | 
				
			||||||
                "Go to [Preferences](#settings/preferences) "
 | 
					                "You can switch between [light and dark theme](/help/dark-theme), "
 | 
				
			||||||
                "to [switch between the light and dark themes](/help/dark-theme), "
 | 
					                "[pick your favorite emoji set](/help/emoji-and-emoticons#change-your-emoji-set), "
 | 
				
			||||||
                "[pick your favorite emoji theme](/help/emoji-and-emoticons#change-your-emoji-set), "
 | 
					                "[change your language](/help/change-your-language), and otherwise customize "
 | 
				
			||||||
                "[change your language](/help/change-your-language), and make other tweaks to your Zulip experience."
 | 
					                "your Zulip experience in your [Preferences](#settings/preferences)."
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
            self.assertEqual(most_recent_message(user).content, expected_response)
 | 
					            self.assertEqual(most_recent_message(user).content, expected_response)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -93,7 +93,8 @@ class TutorialTests(ZulipTestCase):
 | 
				
			|||||||
        for content in messages:
 | 
					        for content in messages:
 | 
				
			||||||
            self.send_personal_message(user, bot, content)
 | 
					            self.send_personal_message(user, bot, content)
 | 
				
			||||||
            expected_response = (
 | 
					            expected_response = (
 | 
				
			||||||
                "In Zulip, channels [determine who gets a message](/help/introduction-to-channels).\n\n"
 | 
					                "Channels organize conversations based on who needs to see them. "
 | 
				
			||||||
 | 
					                "For example, it's common to have a channel for each team in an organization.\n\n"
 | 
				
			||||||
                "[Browse and subscribe to channels](#channels/all)."
 | 
					                "[Browse and subscribe to channels](#channels/all)."
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
            self.assertEqual(most_recent_message(user).content, expected_response)
 | 
					            self.assertEqual(most_recent_message(user).content, expected_response)
 | 
				
			||||||
@@ -106,10 +107,12 @@ class TutorialTests(ZulipTestCase):
 | 
				
			|||||||
        for content in messages:
 | 
					        for content in messages:
 | 
				
			||||||
            self.send_personal_message(user, bot, content)
 | 
					            self.send_personal_message(user, bot, content)
 | 
				
			||||||
            expected_response = (
 | 
					            expected_response = (
 | 
				
			||||||
                "In Zulip, topics [tell you what a message is about](/help/introduction-to-topics). "
 | 
					                "[Topics](/help/introduction-to-topics) summarize what each conversation in Zulip "
 | 
				
			||||||
                "They are light-weight subjects, very similar to the subject line of an email.\n\n"
 | 
					                "is about. You can read Zulip one topic at a time, seeing each message in context, "
 | 
				
			||||||
                "Check out [Recent conversations](#recent) to see what's happening! "
 | 
					                "no matter how many other conversations are going on.\n\n"
 | 
				
			||||||
                'You can return to this conversation by clicking "Direct messages" in the upper left.'
 | 
					                "When you start a conversation, label it with a new topic. For a good topic name, "
 | 
				
			||||||
 | 
					                "think about finishing the sentence: “Hey, can we chat about…?”\n\n"
 | 
				
			||||||
 | 
					                "Check out [Recent conversations](#recent) for a list of topics that are being discussed."
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
            self.assertEqual(most_recent_message(user).content, expected_response)
 | 
					            self.assertEqual(most_recent_message(user).content, expected_response)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -135,11 +138,10 @@ class TutorialTests(ZulipTestCase):
 | 
				
			|||||||
        for content in messages:
 | 
					        for content in messages:
 | 
				
			||||||
            self.send_personal_message(user, bot, content)
 | 
					            self.send_personal_message(user, bot, content)
 | 
				
			||||||
            expected_response = (
 | 
					            expected_response = (
 | 
				
			||||||
                "Zulip uses [Markdown](/help/format-your-message-using-markdown), "
 | 
					                "You can **format** *your* `message` using the handy formatting "
 | 
				
			||||||
                "an intuitive format for **bold**, *italics*, bulleted lists, and more. "
 | 
					                "buttons, or by typing your formatting with Markdown.\n\n"
 | 
				
			||||||
                "Click [here](#message-formatting) for a cheat sheet.\n\n"
 | 
					                "Check out the [cheat sheet](#message-formatting) to learn about "
 | 
				
			||||||
                "Check out our [messaging tips](/help/messaging-tips) to learn about emoji reactions, "
 | 
					                "spoilers, global times, and more."
 | 
				
			||||||
                "code blocks and much more!"
 | 
					 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
            self.assertEqual(most_recent_message(user).content, expected_response)
 | 
					            self.assertEqual(most_recent_message(user).content, expected_response)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user