Skip to content

Commit

Permalink
Update to v.0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbot-ai committed Jun 28, 2023
1 parent 6405e49 commit ef40f6e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,9 @@ All fields are required in the current version of the bot.

## Launch

* In the [pagekite control panel](https://pagekite.net/home), add the `kite` to create another tunnel. For example, `driver-taxiexample.pagekite.me`. To do this, click the `add kite` button
* Select the port for `DriverBot`, for example, `6011`
* Run `pagekite`. Set the port and the external address. For example,
```
python3 pagekite.py 6011 driver-taxiexample.pagekite.me
```
* Make sure that `pagekite` has started successfully and created a tunnel
* Make sure you are in the `taxi_bot` directory
* In the [pagekite control panel](https://pagekite.net/home), add the `kite` to create another tunnel. For example, `driver-taxiexample.pagekite.me`. To do this, click the `add kite` button.
* Make sure you are in the `taxi_bot` directory.
* Select the port for `DriverBot`, for example, `6011`.
* Run the bot with the command
```
maxbot run --bot taxi_bot.bot:driver --updater=webhooks --host=localhost --port=<BIND_PORT> --public-url=<DRIVER_BOT_PUBLIC_URL>
Expand All @@ -201,6 +196,11 @@ All fields are required in the current version of the bot.
```
maxbot run --bot taxi_bot.bot:driver --updater=webhooks --host=localhost --port=6011 --public-url=https://driver-taxiexample.pagekite.me
```
* Run `pagekite`. Set the port and the external address. For example,
```
python3 pagekite.py 6011 driver-taxiexample.pagekite.me
```
* Make sure that `pagekite` has started successfully and created a tunnel.


# CustomerBot
Expand All @@ -226,8 +226,13 @@ See the appropriate section for the `DriverBot`.
## Launch

* In the [pagekite control panel](https://pagekite.net/home), add the `kite` to create another tunnel. For example, `customer-taxiexample.pagekite.me`. To do this, click the `add kite' button.
* Make sure you are in the `taxi_bot` directory.
* Select the port for `CustomerBot`, for example, `6012`.
* For `CustomerBot` it is important to create the tunnel first, and then run the bot (due to the features of Viber and pagekite). Run pagekite. Set the port and the external address, for example,
```
python3 pagekite.py 6012 customer-taxiexample.pagekite.me
```
* Make sure that `pagekite` has started successfully and created a tunnel on `bind_port`.
* Make sure you are in the `taxi_bot` directory.
* Run the bot with the command
```
maxbot run --bot taxi_bot.bot:customer --updater=webhooks --host=localhost --port=<BIND_PORT>\ --public-url=<CUSTOMER_BOT_PUBLIC_URL>
Expand All @@ -236,11 +241,6 @@ See the appropriate section for the `DriverBot`.
```
maxbot run --bot taxi_bot.bot:customer --updater=webhooks --host=localhost --port=6012 --public-url=https://customer-taxiexample.pagekite.me
```
* Run `pagekite`. Set the `port` and the external address. For example,
```
python3 pagekite.py 6012 customer-taxiexample.pagekite.me
```
* Make sure that `pagekite` has started successfully and created a tunnel on `bind_port`.
# Testing
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "taxi_bot"
version = "0.1.0"
description = ""
version = "0.1.1"
description = "Maxbot taxi bot example"
authors = ["Maxbot Team <[email protected]>"]
readme = "README.md"

Expand Down
4 changes: 2 additions & 2 deletions taxi_bot.conf.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bind_port=6010
image_storage_url="https://taxibot.pagekite.me"
driver_bot_url="https://driver-taxibot.pagekite.me"
customer_bot_url="https://customer-taxibot.pagekite.me"
driver_bot_url="http://localhost:6011"
customer_bot_url="http://localhost:6012"
openrouteservice_token="5b4ce3517851110001cf624810560a9757164cc3966422712ace79f1"
upload_file_path="/tmp"

0 comments on commit ef40f6e

Please sign in to comment.