Files
ADHDbot/Runner.py
2025-11-11 23:11:59 -06:00

26 lines
694 B
Python

from AIInteraction import AIInteraction
class Runner:
"""Small façade so other modules only import one thing."""
@staticmethod
def run(userId, category, promptName, context, history=None, modeHint=None):
message = AIInteraction.callAI(
userId,
category,
promptName,
context,
history=history,
modeHint=modeHint,
)
return message
@staticmethod
def sendToDiscord(userId, message):
if not userId:
return
from DiscordGateway import DiscordGateway # lazy import to avoid dependency in simple runs
DiscordGateway.sendMessage(userId, message)