From 51ddbcaaeba355cb7102b1bc27226894d65571e0 Mon Sep 17 00:00:00 2001 From: David Vilela Date: Thu, 6 Jun 2024 18:45:03 +0200 Subject: [PATCH] fix: tweet processing --- packages/dvilela/skills/tsunami_abci/behaviours.py | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/dvilela/skills/tsunami_abci/behaviours.py b/packages/dvilela/skills/tsunami_abci/behaviours.py index 739bcb3..0757dbe 100644 --- a/packages/dvilela/skills/tsunami_abci/behaviours.py +++ b/packages/dvilela/skills/tsunami_abci/behaviours.py @@ -147,6 +147,7 @@ def sentence_split(sentence: str, separator: str) -> List[str]: return [p.strip() for p in parts] sentences = [t.strip() for t in tweet.split(".")] + sentences = [s for s in sentences if s] thread: List[str] = [] # Keep iterating while there are sentences to process