from aptbot.bot import Bot, Message, Commands
from typing import Union
-from .. import database_manager
-import time
MAX_LENGTH = 480
message = message.replace("{channel}", message_data.channel)
messages = _split_message(message)
- for message in messages:
- if reply:
- tags = {"display-name": "MurphyAI", "tmi-sent-ts": int(time.time() * 1000), "user-id": "784114488", "room-id": "169701299", "reply-parent-msg-id": reply}
- database_manager.add_message_tochat_history(
- Message(
- tags=tags,
- nick="murphyai",
- command=Commands.PRIVMSG,
- message_data.channel,
- value=message
- )
- )
+ # for message in messages:
+ # if reply:
+ # tags = {"display-name": "MurphyAI", "tmi-sent-ts": int(time.time() * 1000), "user-id": "784114488", "room-id": "169701299", "reply-parent-msg-id": reply}
+ # database_manager.add_message_tochat_history(
+ # Message(
+ # tags=tags,
+ # nick="murphyai",
+ # command=Commands.PRIVMSG,
+ # message_data.channel,
+ # value=message
+ # )
+ # )
if safe_send:
send_safe(bot, message_data.channel, messages, reply)
else: