Skip to content

Commit 69c8635

Browse files
authored
Merge pull request #9 from DonnC/dev
upload to pypi
2 parents b18711c + 98658a5 commit 69c8635

File tree

15 files changed

+49
-260
lines changed

15 files changed

+49
-260
lines changed

.idea/workspace.xml

+27-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MANIFEST.in

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include README.md
2+
include LICENSE
3+
include requirements.txt
4+
recursive-exclude * __pycache__
5+
recursive-exclude * *.log
6+
recursive-exclude * *.py[cod]

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PyWCE - Python WhatsApp Cloud Engine
1+
# Python WhatsApp ChatBot Engine
22

33
A package for creating WhatsApp chatbots using a template-driven approach. It decouples
44
the engine from the WhatsApp client library, allowing developers to use them independently or
@@ -21,7 +21,7 @@ PyWCE provides a simple, Pythonic interface to interact with the WhatsApp Cloud
2121

2222
_**Note**: You can use pywce as a standalone whatsapp client library_
2323

24-
_Checkout complete standalone chatbot with [Fast Api here](/example/standalone_chatbot/main.py)_
24+
_Checkout complete standalone chatbot with [Fast Api here](https://github.com/DonnC/pywce/blob/master/example/standalone_chatbot/main.py)_
2525

2626
- **Send messages** (text, media, templates, interactive)
2727
- **Receive and process webhooks**
@@ -70,7 +70,7 @@ pip install pywce
7070

7171
Here's a simple example template to get you started:
7272

73-
_**Note:** Checkout complete example chatbot with [Fast Api here](/example/engine_chatbot/main.py)_
73+
_**Note:** Checkout complete example chatbot with [Fast Api here](https://github.com/DonnC/pywce/blob/master/example/engine_chatbot/main.py)_
7474

7575
1. Define your YAML template:
7676

@@ -142,8 +142,8 @@ Visit the [official documentation](https://docs.page/donnc/wce) for a detailed g
142142

143143
## Contributing
144144

145-
We welcome contributions! Please check out the [Contributing Guide](CONTRIBUTING.md) for details.
145+
We welcome contributions! Please check out the [Contributing Guide](https://github.com/DonnC/pywce/blob/master/CONTRIBUTING.md) for details.
146146

147147
## License
148148

149-
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
149+
This project is licensed under the MIT License. See the [LICENSE](https://github.com/DonnC/pywce/blob/master/LICENCE) file for details.

example/engine_chatbot/settings.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ class Settings:
1212
# see more under [WhatsAppConfig] class
1313
TOKEN = "account-access-token"
1414
PHONE_NUMBER_ID = "account-phone-number-id"
15-
HUB_TOKEN = "your-hub-verification-token"
15+
HUB_TOKEN = "your-webhook-hub-verification-token"
1616

1717
# engine settings
1818
# see more under [PywceEngineConfig] class
1919
TEMPLATES_DIR = "templates"
2020
TRIGGERS_DIR = "triggers"
21-
START_STAGE = "EM-START-MENU" # START-MENU
21+
START_STAGE = "START-MENU"
2222

2323
# for local emulator (if you know what you are doing)
2424
# requires knowledge and running of the emulator project
2525
# set this to False
26-
USE_EMULATOR = True
26+
USE_EMULATOR = False

example/standalone_chatbot/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ class Settings:
1212
# see more under [WhatsAppConfig] class
1313
TOKEN = "account-access-token"
1414
PHONE_NUMBER_ID = "account-phone-number-id"
15-
HUB_TOKEN = "your-hub-verification-token"
15+
HUB_TOKEN = "your-webhook-hub-verification-token"
1616

logs/.gitkeep

Whitespace-only changes.

pywce/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from pywce.modules.session import ISessionManager
1919
from pywce.modules.session.default_session_manager import DefaultSessionManager
2020
from pywce.modules.whatsapp import WhatsApp, WhatsAppConfig
21-
from pywce.src.engine import PywceEngine
21+
from pywce.src.engine import PywceEngine, PywceEngineConfig
2222
from pywce.src.models import *
2323

2424
__author__ = "Donald Chinhuru"
@@ -32,6 +32,7 @@
3232
"WhatsApp",
3333
"WhatsAppConfig",
3434
"PywceEngine",
35+
"PywceEngineConfig"
3536
]
3637
__doc__ = (
3738
"A Python package for creating chatbots using a template-driven approach. "

resources/sample/template.yaml

-24
This file was deleted.

resources/templates/ehailing-bot.yaml

-121
This file was deleted.

0 commit comments

Comments
 (0)