fix sending messages + rename the js
This commit is contained in:
parent
ddf65351ff
commit
3d2d5c6717
1 changed files with 3 additions and 2 deletions
|
|
@ -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(" ");
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue