Skip to content

feat: add rich menu deployment scripts and images#17

Merged
yenslife merged 5 commits into
mainfrom
richmenu
Jun 6, 2025
Merged

feat: add rich menu deployment scripts and images#17
yenslife merged 5 commits into
mainfrom
richmenu

Conversation

@yenslife
Copy link
Copy Markdown
Contributor

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.

yenslife added 5 commits May 30, 2025 22:47
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
@yenslife yenslife merged commit 8b112fb into main Jun 6, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant