webex-bot 0.4.6__py2.py3-none-any.whl → 0.4.8__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- webex_bot/__init__.py +1 -1
- webex_bot/webex_bot.py +8 -8
- {webex_bot-0.4.6.dist-info → webex_bot-0.4.8.dist-info}/METADATA +9 -1
- {webex_bot-0.4.6.dist-info → webex_bot-0.4.8.dist-info}/RECORD +7 -7
- {webex_bot-0.4.6.dist-info → webex_bot-0.4.8.dist-info}/LICENSE +0 -0
- {webex_bot-0.4.6.dist-info → webex_bot-0.4.8.dist-info}/WHEEL +0 -0
- {webex_bot-0.4.6.dist-info → webex_bot-0.4.8.dist-info}/top_level.txt +0 -0
webex_bot/__init__.py
CHANGED
webex_bot/webex_bot.py
CHANGED
|
@@ -60,27 +60,27 @@ class WebexBot(WebexWebsocketClient):
|
|
|
60
60
|
on_card_action=self.process_incoming_card_action,
|
|
61
61
|
device_url=device_url)
|
|
62
62
|
|
|
63
|
-
# A dictionary of commands this bot listens to
|
|
64
|
-
# Each key in the dictionary is a command, with associated help
|
|
65
|
-
# text and callback function
|
|
66
|
-
# By default supports 2 command, echo and help
|
|
67
|
-
|
|
68
63
|
if help_command is None:
|
|
69
64
|
self.help_command = HelpCommand(
|
|
70
65
|
bot_name=bot_name,
|
|
71
66
|
bot_help_subtitle=bot_help_subtitle,
|
|
72
67
|
bot_help_image=self.teams.people.me().avatar)
|
|
73
|
-
self.help_command.commands = self.commands
|
|
74
|
-
# Set default help message
|
|
75
|
-
self.help_message = "Hello! I understand the following commands: \n"
|
|
76
68
|
else:
|
|
77
69
|
self.help_command = help_command
|
|
70
|
+
|
|
71
|
+
# A dictionary of commands this bot listens to
|
|
72
|
+
# Each key in the dictionary is a command, with associated help
|
|
73
|
+
# text and callback function
|
|
74
|
+
# By default supports 2 command, echo and help
|
|
78
75
|
self.commands = {
|
|
79
76
|
self.help_command
|
|
80
77
|
}
|
|
78
|
+
|
|
81
79
|
if include_demo_commands:
|
|
82
80
|
self.add_command(EchoCommand())
|
|
83
81
|
|
|
82
|
+
self.help_command.commands = self.commands
|
|
83
|
+
|
|
84
84
|
self.card_callback_commands = {}
|
|
85
85
|
self.approved_users = approved_users
|
|
86
86
|
self.approved_domains = approved_domains
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: webex-bot
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.8
|
|
4
4
|
Summary: Python package for a Webex Bot based on websockets.
|
|
5
5
|
Home-page: https://github.com/fbradyirl/webex_bot
|
|
6
6
|
Author: Finbarr Brady
|
|
@@ -359,6 +359,14 @@ and off you go!
|
|
|
359
359
|
* feat(20231212): add help image size parameter (#46)
|
|
360
360
|
* update websockets to 11.0.3 (#43)
|
|
361
361
|
|
|
362
|
+
### 0.4.7 (2024-Apr-24)
|
|
363
|
+
|
|
364
|
+
* Fix for help_command syntax issue
|
|
365
|
+
|
|
366
|
+
### 0.4.8 (2024-Apr-25)
|
|
367
|
+
|
|
368
|
+
* Fix for help_command missing commands.
|
|
369
|
+
|
|
362
370
|
[1]: https://github.com/aaugustin/websockets
|
|
363
371
|
|
|
364
372
|
[2]: https://github.com/CiscoDevNet/webexteamssdk
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
webex_bot/__init__.py,sha256=
|
|
1
|
+
webex_bot/__init__.py,sha256=Db8XxYbzWv-VLehiQFiSmxPWMCXMwosnwsQ2zh_3oTc,95
|
|
2
2
|
webex_bot/exceptions.py,sha256=qs9yVitfJtvxwBMC8uCvTDOxUQ_oZjWFf1dU8Oaue14,740
|
|
3
3
|
webex_bot/formatting.py,sha256=jvPKym-z8CIJygpPVTVbt6vFXQo9_HQHpRDJB-nh-SI,382
|
|
4
|
-
webex_bot/webex_bot.py,sha256=
|
|
4
|
+
webex_bot/webex_bot.py,sha256=Fvga8PUgBtFkdkYirDpNU35uRkfhdIRPUrFj6z6amYo,20325
|
|
5
5
|
webex_bot/cards/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
webex_bot/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
webex_bot/commands/echo.py,sha256=YmeRVh56pzsj0_lRHDvgyrv6YqQQdRiusG65dHTh9qU,3397
|
|
@@ -11,8 +11,8 @@ webex_bot/models/command.py,sha256=Rok661eZM2Mg465CZ4GgctWi1RD-BD5Bruq0FsJ8GDQ,5
|
|
|
11
11
|
webex_bot/models/response.py,sha256=1U0EQv8O5R3-demaumxMExn278DG4AeQHhXP_g4xndk,2544
|
|
12
12
|
webex_bot/websockets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
webex_bot/websockets/webex_websocket_client.py,sha256=uBpvpRLmfhgtfDr0Yomg6FNei9CIsCEigNsAEu5c5iY,9427
|
|
14
|
-
webex_bot-0.4.
|
|
15
|
-
webex_bot-0.4.
|
|
16
|
-
webex_bot-0.4.
|
|
17
|
-
webex_bot-0.4.
|
|
18
|
-
webex_bot-0.4.
|
|
14
|
+
webex_bot-0.4.8.dist-info/LICENSE,sha256=93eGb10xmgkBP2Fh_n0E9YDXe0c0oz-FsnAimXG0S4Y,1072
|
|
15
|
+
webex_bot-0.4.8.dist-info/METADATA,sha256=1DSSbFG_SMBPMEQIvtO87N3e4JJdIsvvQbyNByr-1Eo,11137
|
|
16
|
+
webex_bot-0.4.8.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
|
|
17
|
+
webex_bot-0.4.8.dist-info/top_level.txt,sha256=q1Y0RtYYinR7oXSwL93cK59c2KN_CbMVca8MLWeF63M,10
|
|
18
|
+
webex_bot-0.4.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|