Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ def message_handler(
users = []

if task["userId"] in users:
AI_BOT.send_message(task["output"]["output"] + AI_WATERMARK, reply_to, token=token)
message = task["output"]["output"]

if ("includeWatermark" in task) and task["includeWatermark"]:
message += AI_WATERMARK

AI_BOT.send_message(message, reply_to, token=token)

return responses.Response()

Expand Down