Skip to content

Commit

Permalink
Merge pull request #3 from pha123661/working
Browse files Browse the repository at this point in the history
Fix bug
  • Loading branch information
blafea authored Dec 24, 2024
2 parents f97c14e + 818c56b commit aab624e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ async def handle_text_message(self, event: MessageEvent):
upsert=True
)
return
if input_text.startswith(f"@{self.BOT_NAME}") or input_text.endswith(f"@{self.BOT_NAME}"):
if input_text.startswith(f"@{self.BOT_NAME}") or input_text.startswith(f"@{self.BOT_NAME}"):
input_text = input_text[len(f"@{self.BOT_NAME}"):]
elif input_text.endswith(f"@{self.BOT_NAME}") or input_text.endswith(f"@{self.BOT_NAME}"):
input_text = input_text[:-len(f"@{self.BOT_NAME}")]
Expand Down

0 comments on commit aab624e

Please sign in to comment.