Skip to content

Commit

Permalink
Merge pull request #943 from mraniki/dev
Browse files Browse the repository at this point in the history
Update pyproject.toml with DXSP V6
  • Loading branch information
mraniki authored Oct 13, 2023
2 parents 3879445 + 707f538 commit 94be856
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ping3 = "^4.0.4"
talkytrend = "1.15.2"
iamlistening = "4.2.13"
findmyorder = "1.9.1"
dxsp = "5.2.11"
dxsp = "6.0.0"
cefi = "3.1.6"
myllm = "3.1.25"

Expand Down
6 changes: 4 additions & 2 deletions tt/plugins/default_plugins/llm_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ async def handle_message(self, msg):
"""Handles incoming messages"""
if not self.should_handle(msg):
return
if self.llm.llm_ai_mode and (
settings.bot_ignore not in msg or settings.bot_prefix not in msg
if (
self.llm.llm_ai_mode
and (settings.bot_ignore not in msg)
and (not msg.startswith(settings.bot_prefix))
):
chat = await self.llm.chat(str(msg))
await self.send_notification(chat)
Expand Down
4 changes: 2 additions & 2 deletions tt/plugins/plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ async def process_message(self, message):
None
"""


logger.debug("Processing: {}", message)
if not message:
return
logger.debug("Processing: {}", message)
tasks=[]
for plugin in self.plugins:

Expand Down

0 comments on commit 94be856

Please sign in to comment.