Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
style: update log message when the bot is waiting for SMS authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzeng committed Jul 11, 2023
1 parent a35cfa8 commit 50c3950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ docker run -it -v /path/to/somewhere:/cookie \

> **Warning**
>
> 機器人進行登入期間,你可能會收到來自 shopee 的手機驗證簡訊,其中會有一個驗證登入的連結。請在 10 分鐘內進行驗證,在這期間機器人會等你。
> 機器人進行登入期間,你可能會收到來自 shopee 的手機驗證簡訊,其中會有一個驗證登入的連結。請在 10 分鐘內進行驗證,在這期間機器人會等你。一旦你點了驗證簡訊後,機器人會立即繼續執行下去。
### 自動登入

Expand Down
2 changes: 1 addition & 1 deletion src/tw-shopee-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default class TaiwanShopeeBot {
// Now user should click the link sent from Shopee to her mobile via SMS.
// Wait for user completing the process; by the time the website should be
// redirected to coin page.
logger.info('An SMS message is sent to your mobile. Please click the link in 10 minutes. I will wait for you...')
logger.info('An SMS message is sent to your mobile. Once you click the link I will keep going. I will wait for you and please complete it in 10 minutes.')
try {
await this.driver.wait(until.urlMatches(/^https:\/\/shopee.tw\/shopee-coins(\?.*)?$/), 10 * 60 * 1000) // timeout is 10min
} catch (e: unknown) {
Expand Down

0 comments on commit 50c3950

Please sign in to comment.