Skip to content

Commit 6ed61d6

Browse files
committed
Removed some print statements that were not needed, improved multibot and added ssl support to REST and HTTP clients
1 parent 2efce16 commit 6ed61d6

39 files changed

+145
-329
lines changed

bots/servusai/console/config.yaml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,6 @@ bot:
88
exit_response: So long, and thanks for the fish!
99
exit_response_srai: YEXITRESPONSE
1010

11-
override_properties: true
12-
13-
max_question_recursion: 1000
14-
max_question_timeout: 60
15-
max_search_depth: 100
16-
max_search_timeout: 60
17-
18-
conversations:
19-
type: file
20-
config_name: file_storage
21-
empty_on_start: true
22-
23-
file_storage:
24-
dir: $BOT_ROOT/conversations
25-
2611
brain:
2712

2813
# Overrides
@@ -39,8 +24,8 @@ brain:
3924

4025
# Nodes
4126
nodes:
42-
pattern_nodes: $BOT_ROOT/config/pattern_nodes.conf
43-
template_nodes: $BOT_ROOT/config/template_nodes.conf
27+
pattern_nodes: ../../ybot/config/pattern_nodes.conf
28+
template_nodes: ../../ybot/config/template_nodes.conf
4429

4530
files:
4631
aiml:

bots/servusai/console/config/pattern_nodes.conf

Lines changed: 0 additions & 17 deletions
This file was deleted.

bots/servusai/console/config/template_nodes.conf

Lines changed: 0 additions & 57 deletions
This file was deleted.

bots/servusai/facebook/config.yaml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,6 @@ bot:
1212

1313
override_properties: true
1414

15-
max_question_recursion: 1000
16-
max_question_timeout: 60
17-
max_search_depth: 100
18-
max_search_timeout: 60
19-
20-
conversations:
21-
type: file
22-
config_name: file_storage
23-
empty_on_start: true
24-
25-
file_storage:
26-
dir: $BOT_ROOT/conversations
27-
2815
brain:
2916

3017
# Overrides
@@ -41,8 +28,8 @@ brain:
4128

4229
# Nodes
4330
nodes:
44-
pattern_nodes: $BOT_ROOT/config/pattern_nodes.conf
45-
template_nodes: $BOT_ROOT/config/template_nodes.conf
31+
pattern_nodes: ../../ybot/config/pattern_nodes.conf
32+
template_nodes: ../../ybot/config/template_nodes.conf
4633

4734
files:
4835
aiml:
@@ -65,10 +52,7 @@ brain:
6552
port: 8989
6653
url: /api/v1.0/ask
6754

68-
xmpp:
69-
server: talk.google.com
70-
port: 5222
71-
xep_0030: true
72-
xep_0004: true
73-
xep_0060: true
74-
xep_0199: true
55+
facebook:
56+
host: 127.0.0.1
57+
port: 5000
58+
debug: false

bots/servusai/facebook/config/pattern_nodes.conf

Lines changed: 0 additions & 17 deletions
This file was deleted.

bots/servusai/facebook/config/template_nodes.conf

Lines changed: 0 additions & 57 deletions
This file was deleted.

bots/servusai/facebook/servusai-facebook.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[Unit]
2-
Description=Y-Bot Demonstration Web Chat
2+
Description=Y-Bot Facebook Client
33

44
[Service]
55
User=ubuntu
6-
ExecStart=/opt/program-y/bots/y-bot/servusai-web.sh
6+
ExecStart=/opt/program-y/bots/servusai/servusai-facebook.sh
77
Restart=always
88

99
[Install]

bots/servusai/facebook/servusai-facebook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export PYTHONPATH=/opt/program-y/src:.
66

77
cd /opt/program-y
88

9-
python3 /opt/program-y/src/programy/clients/webchat/chatsrv.py --config /opt/program-y/bots/y-bot/config.yaml --cformat yaml --logging /opt/program-y/bots/y-bot/logging.yaml
9+
python3 /opt/program-y/src/programy/clients/facebook.py --config /opt/program-y/bots/servusai/config.yaml --cformat yaml --logging /opt/program-y/bots/y-bot/logging.yaml
1010

bots/servusai/rest/servusai-rest.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[Unit]
2-
Description=Y-Bot Demonstration Web Chat
2+
Description=Y-Bot REST Client
33

44
[Service]
55
User=ubuntu
6-
ExecStart=/opt/program-y/bots/multibot/servusai-rest.sh
6+
ExecStart=/opt/program-y/bots/servusai/rest/servusai-rest.sh
77
Restart=always
88

99
[Install]

bots/servusai/rest/servusai-rest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export PYTHONPATH=/opt/program-y/src:.
66

77
cd /opt/program-y
88

9-
python3 /opt/program-y/src/programy/clients/flaskrest.py --config /opt/program-y/bots/multibot/rest/config.yaml --cformat yaml --logging /opt/program-y/bots/multibot/rest/logging.yaml
9+
python3 /opt/program-y/src/programy/clients/flaskrest.py --config /opt/program-y/bots/y-bot/config.yaml --cformat yaml --logging /opt/program-y/bots/y-bot/logging.yaml
1010

bots/servusai/socket/config.yaml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,6 @@ bot:
1010

1111
override_properties: true
1212

13-
max_question_recursion: 1000
14-
max_question_timeout: 60
15-
max_search_depth: 100
16-
max_search_timeout: 60
17-
18-
conversations:
19-
type: file
20-
config_name: file_storage
21-
empty_on_start: true
22-
23-
file_storage:
24-
dir: $BOT_ROOT/conversations
25-
2613
brain:
2714

2815
# Overrides
@@ -39,8 +26,8 @@ brain:
3926

4027
# Nodes
4128
nodes:
42-
pattern_nodes: $BOT_ROOT/config/pattern_nodes.conf
43-
template_nodes: $BOT_ROOT/config/template_nodes.conf
29+
pattern_nodes: ../../ybot/config/pattern_nodes.conf
30+
template_nodes: ../../ybot/config/template_nodes.conf
4431

4532
files:
4633
aiml:

bots/servusai/socket/config/pattern_nodes.conf

Lines changed: 0 additions & 17 deletions
This file was deleted.

bots/servusai/socket/config/template_nodes.conf

Lines changed: 0 additions & 57 deletions
This file was deleted.

bots/servusai/socket/servusai-socket.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[Unit]
2-
Description=Y-Bot Demonstration Web Chat
2+
Description=Y-Bot TCP Socket Client
33

44
[Service]
55
User=ubuntu
6-
ExecStart=/opt/program-y/bots/multibot/socket/servusai-socket.sh
6+
ExecStart=/opt/program-y/bots/servusai/socket/servusai-socket.sh
77
Restart=always
88

99
[Install]

bots/servusai/socket/servusai-socket.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export PYTHONPATH=/opt/program-y/src:.
66

77
cd /opt/program-y
88

9-
python3 /opt/program-y/src/programy/clients/socket.py --config /opt/program-y/bots/y-bot/config.yaml --cformat yaml --logging /opt/program-y/bots/y-bot/logging.yaml
9+
python3 /opt/program-y/src/programy/clients/socket.py --config /opt/program-y/bots/servusai/config.yaml --cformat yaml --logging /opt/program-y/bots/y-bot/logging.yaml
1010

0 commit comments

Comments
 (0)