Compare commits
No commits in common. "0d4d27cdc1e1ec0a099a0d60e30d27206fb4efe0" and "c514c5fb73f5af4f2920d4042c844eef8a3b748d" have entirely different histories.
0d4d27cdc1
...
c514c5fb73
2
app.py
2
app.py
|
|
@ -642,7 +642,7 @@ def on_pm_message(data):
|
||||||
)
|
)
|
||||||
|
|
||||||
# Route to AI if recipient is Violet
|
# Route to AI if recipient is Violet
|
||||||
if f":{AI_BOT_NAME.lower()}" in room.lower():
|
if room.endswith(f":{AI_BOT_NAME.lower()}"):
|
||||||
if not user.get("user_id"):
|
if not user.get("user_id"):
|
||||||
emit("error", {"msg": "You must be registered to chat with Violet."}); return
|
emit("error", {"msg": "You must be registered to chat with Violet."}); return
|
||||||
if not user.get("has_ai_access") and user.get("ai_messages_used", 0) >= AI_FREE_LIMIT:
|
if not user.get("has_ai_access") and user.get("ai_messages_used", 0) >= AI_FREE_LIMIT:
|
||||||
|
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"HOST": "0.0.0.0",
|
|
||||||
"PORT": 5000,
|
|
||||||
"SECRET_KEY": "sexchat-very-secret-key-change-me",
|
|
||||||
"JWT_SECRET": "sexchat-jwt-secret-key-change-me",
|
|
||||||
"ADMIN_PASSWORD": "admin",
|
|
||||||
"OLLAMA_URL": "http://localhost:11434",
|
|
||||||
"VIOLET_MODEL": "sam860/dolphin3-llama3.2:3b",
|
|
||||||
"DATABASE_URL": "sqlite:///instance/sexchat.db",
|
|
||||||
"REDIS_URL": "redis://localhost:6379/0",
|
|
||||||
"AI_FREE_LIMIT": 3
|
|
||||||
}
|
|
||||||
|
|
@ -346,7 +346,7 @@ messageForm.addEventListener("submit", async (e) => {
|
||||||
socket.emit("message", { text });
|
socket.emit("message", { text });
|
||||||
}
|
}
|
||||||
else if (state.currentRoom.startsWith("pm:")) {
|
else if (state.currentRoom.startsWith("pm:")) {
|
||||||
const isVioletRoom = state.currentRoom.toLowerCase().includes(":violet");
|
const isVioletRoom = state.currentRoom.toLowerCase().endsWith(":violet");
|
||||||
|
|
||||||
if (isVioletRoom) {
|
if (isVioletRoom) {
|
||||||
if (!state.isRegistered || !state.cryptoKey) {
|
if (!state.isRegistered || !state.cryptoKey) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue