webex-bot 1.0.6__tar.gz → 1.0.7__tar.gz
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-1.0.6/webex_bot.egg-info → webex_bot-1.0.7}/PKG-INFO +2 -2
- {webex_bot-1.0.6 → webex_bot-1.0.7}/README.md +1 -1
- {webex_bot-1.0.6 → webex_bot-1.0.7}/setup.cfg +1 -1
- {webex_bot-1.0.6 → webex_bot-1.0.7}/setup.py +1 -1
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot/__init__.py +1 -1
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot/webex_bot.py +7 -6
- {webex_bot-1.0.6 → webex_bot-1.0.7/webex_bot.egg-info}/PKG-INFO +2 -2
- {webex_bot-1.0.6 → webex_bot-1.0.7}/CONTRIBUTING.rst +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/LICENSE +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/MANIFEST.in +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/docs/Makefile +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/docs/conf.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/docs/contributing.rst +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/docs/index.rst +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/docs/installation.rst +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/docs/make.bat +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/docs/usage.rst +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/tests/__init__.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/tests/test_webex_bot.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot/cards/__init__.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot/commands/__init__.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot/commands/echo.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot/commands/help.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot/exceptions.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot/formatting.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot/models/__init__.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot/models/command.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot/models/response.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot/websockets/__init__.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot/websockets/webex_websocket_client.py +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot.egg-info/SOURCES.txt +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot.egg-info/dependency_links.txt +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot.egg-info/not-zip-safe +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot.egg-info/requires.txt +0 -0
- {webex_bot-1.0.6 → webex_bot-1.0.7}/webex_bot.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: webex_bot
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.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
|
|
@@ -460,7 +460,7 @@ bot = WebexBot(teams_bot_token=os.getenv("WEBEX_ACCESS_TOKEN")
|
|
|
460
460
|
|
|
461
461
|
* Update UA
|
|
462
462
|
|
|
463
|
-
### 1.0.
|
|
463
|
+
### 1.0.7 (2025-Sept-17)
|
|
464
464
|
|
|
465
465
|
* Allow flag to disable bot to bot check
|
|
466
466
|
|
|
@@ -206,12 +206,13 @@ class WebexBot(WebexWebsocketClient):
|
|
|
206
206
|
raw_message = teams_message.text
|
|
207
207
|
is_one_on_one_space = 'ONE_ON_ONE' in activity['target']['tags']
|
|
208
208
|
|
|
209
|
-
if activity['actor']['type'] != 'PERSON'
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
209
|
+
if activity['actor']['type'] != 'PERSON':
|
|
210
|
+
if not self.allow_bot_to_bot:
|
|
211
|
+
log.warning(f"Message is from a bot ({user_email}), ignoring")
|
|
212
|
+
return
|
|
213
|
+
else:
|
|
214
|
+
log.warning(
|
|
215
|
+
f"Message is from a bot ({user_email}), and allow_bot_to_bot is {self.allow_bot_to_bot}. Be careful not to create a message loop!")
|
|
215
216
|
|
|
216
217
|
# Log details on message
|
|
217
218
|
log.info(f"Message from {user_email}: {teams_message}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: webex_bot
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.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
|
|
@@ -460,7 +460,7 @@ bot = WebexBot(teams_bot_token=os.getenv("WEBEX_ACCESS_TOKEN")
|
|
|
460
460
|
|
|
461
461
|
* Update UA
|
|
462
462
|
|
|
463
|
-
### 1.0.
|
|
463
|
+
### 1.0.7 (2025-Sept-17)
|
|
464
464
|
|
|
465
465
|
* Allow flag to disable bot to bot check
|
|
466
466
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|