webex-bot 0.4.6__py2.py3-none-any.whl → 0.4.7__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 CHANGED
@@ -1,4 +1,4 @@
1
1
  """Top-level package for Webex Bot."""
2
2
 
3
3
  __author__ = """Finbarr Brady"""
4
- __version__ = '0.4.6'
4
+ __version__ = '0.4.7'
webex_bot/webex_bot.py CHANGED
@@ -60,24 +60,22 @@ 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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: webex-bot
3
- Version: 0.4.6
3
+ Version: 0.4.7
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,10 @@ 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
+
362
366
  [1]: https://github.com/aaugustin/websockets
363
367
 
364
368
  [2]: https://github.com/CiscoDevNet/webexteamssdk
@@ -1,7 +1,7 @@
1
- webex_bot/__init__.py,sha256=iAWNyB5H4ndIq6bXqGlXlf6PUKceoqT-5dwRKJMBN9A,95
1
+ webex_bot/__init__.py,sha256=faLLi0a3D0Rr16Q9IAUb-C-rMhzB30YX9KTL5mwZCuY,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=Vm_XKlTfPK1VnUdQZ3n36XXUJD5Z_iQ6iNPjrWKq49I,20449
4
+ webex_bot/webex_bot.py,sha256=vlG44AZg-zi36FRU9YqwM6W6C0Ht8bWO1mzWMi2ZC54,20273
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.6.dist-info/LICENSE,sha256=93eGb10xmgkBP2Fh_n0E9YDXe0c0oz-FsnAimXG0S4Y,1072
15
- webex_bot-0.4.6.dist-info/METADATA,sha256=QP_kCZ9w2jsdrk5AqTWQxCDTH8E_uVzN_v3m4HKmWFc,11008
16
- webex_bot-0.4.6.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
17
- webex_bot-0.4.6.dist-info/top_level.txt,sha256=q1Y0RtYYinR7oXSwL93cK59c2KN_CbMVca8MLWeF63M,10
18
- webex_bot-0.4.6.dist-info/RECORD,,
14
+ webex_bot-0.4.7.dist-info/LICENSE,sha256=93eGb10xmgkBP2Fh_n0E9YDXe0c0oz-FsnAimXG0S4Y,1072
15
+ webex_bot-0.4.7.dist-info/METADATA,sha256=TVJgJAamUgjYwcaJPo9tv5B96TbEIFbUsr-_lZhTkDQ,11070
16
+ webex_bot-0.4.7.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
17
+ webex_bot-0.4.7.dist-info/top_level.txt,sha256=q1Y0RtYYinR7oXSwL93cK59c2KN_CbMVca8MLWeF63M,10
18
+ webex_bot-0.4.7.dist-info/RECORD,,