Skip to content

Commit

Permalink
Merge pull request #311 from C-Pro/fix/message-text
Browse files Browse the repository at this point in the history
message is not a str
  • Loading branch information
C-Pro authored Feb 19, 2024
2 parents 95be39e + 3e4a08d commit 537f4b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/skills/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ def __init__(self):
def registerMessage(self, update: Update, context: CallbackContext):
if update.message is None:
return
if update.message[0] == "/":
if update.message.text.starts_with("/"):
return
with self.lock:
self.memory.append(
(
datetime.now(),
f"{update.effective_user.full_name}: {update.message}",
f"{update.effective_user.full_name}: {update.message.text}",
),
)

Expand Down

0 comments on commit 537f4b6

Please sign in to comment.