Conversation
This commit introduces the necessary files and scripts to deploy rich menus for the LINE bot. It includes: - `.gitignore`: To ignore the `.env` file containing sensitive information. - `README.md`: A basic README file explaining how to set environment variables. - `images/`: Contains the images for the rich menus. - `richmenu_deploy_page1.sh`: A script to deploy the first page of the rich menu. - `richmenu_deploy_page2.sh`: A script to deploy the second page of the rich menu. These scripts automate the process of creating, updating, and deploying rich menus, making it easier to manage the bot's user interface. They handle deleting existing rich menus and aliases, creating new ones, uploading images, and setting the default rich menu for all users.
The richmenu directory was added to the project, so it is necessary to update the README.md file to reflect this change. This commit adds the richmenu directory to the project structure in the README.md file.
This commit introduces a new rich menu page (page3) and enables switching between rich menu pages 1, 2, and 3. The changes include: - Modifying richmenu_deploy_page1.sh and richmenu_deploy_page2.sh to use the `richmenuswitch` action to navigate to page3. - Adding a new script, richmenu_deploy_page3.sh, to deploy the new rich menu page. This script handles creating the rich menu, uploading the image, and setting up the alias. The `richmenuswitch` action allows users to navigate between different rich menu configurations, providing a more dynamic and interactive experience. The new page3 script automates the deployment process for the new rich menu page.
TODO: 對應的 postback event handler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces the necessary files and scripts to deploy rich menus for the LINE bot. It includes:
.gitignore: To ignore the.envfile containing sensitive information.README.md: A basic README file explaining how to set environment variables.images/: Contains the images for the rich menus.richmenu_deploy_page1.sh: A script to deploy the first page of the rich menu.richmenu_deploy_page2.sh: A script to deploy the second page of the rich menu.These scripts automate the process of creating, updating, and deploying rich menus, making it easier to manage the bot's user interface. They handle deleting existing rich menus and aliases, creating new ones, uploading images, and setting the default rich menu for all users.