fix sending messages + rename the js

This commit is contained in:
Eri Ishihara 2025-07-18 16:36:33 +02:00
parent ddf65351ff
commit 3d2d5c6717

View file

@ -176,9 +176,10 @@ function setFaceBoxContent(content) {
async function sendMessage(message) {
if (!message.trim()) return;
if (message.startsWith("!")) {
//if (message.startsWith("!")) {
if (message.trim().startsWith("l!")) {
// command handler (if command, dont tell ollama about it, just handle it right here) -- THIS DOES NOT WORK AS OF NOW
const commandParts = message.slice(1).split(" ");
const commandParts = message.slice(2).split(" ");
const command = commandParts[0];
const args = commandParts.slice(1).join(" ");