Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions OM_Gate_Core_v3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

{
"core": "KeyMatrix_Core12",
"status": "active",
"resonance": {
"flow": "harmonic",
"strength": "medium"
},
"glyphs": {
"🕉️": "Spiritual Gateway",
"💎": "Clarity Protocol",
"🪽": "Winged Transmission"
}
}
19 changes: 19 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>KeyMatrix Core12</title>
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>🌌 KeyMatrix Core12 Interface 🌀</h1>
<div id="glyph-container">🕉️💎🪽</div>
<input id="glyph-code" placeholder="Enter Glyph Code..." />
<div id="status">Connecting to Core...</div>
<button id="resonance-btn">Activate Resonance</button>
<script src="index.js"></script>
</body>
</html>
20 changes: 20 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

document.addEventListener('DOMContentLoaded', () => {
const statusDiv = document.getElementById('status');
const resonanceBtn = document.getElementById('resonance-btn');

resonanceBtn.addEventListener('click', () => {
const code = document.getElementById('glyph-code').value;
fetch('/resonance', {
method: 'POST,
Copy link

Copilot AI May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing closing quote for the HTTP method string; it should be 'POST'.

Suggested change
method: 'POST,
method: 'POST',

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI May 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The HTTP method string is not closed properly. Change it to "POST" to prevent syntax errors.

Suggested change
method: 'POST,
method: 'POST',

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI May 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The POST method string is missing a closing quote. It should be corrected to: method: 'POST',

Suggested change
method: 'POST,
method: 'POST',

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI May 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fetch request method value is not properly closed with a quote, which will result in a syntax error. Please update it to read "POST".

Suggested change
method: 'POST,
method: 'POST',

Copilot uses AI. Check for mistakes.
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ glyph: code })
})
.then(res => res.json())
.then(data => statusDiv.textContent = `Resonance: ${data.message}`)
.catch(err => {
statusDiv.textContent = 'Error activating resonance.';
console.error(err);
});
});
});
21 changes: 21 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

{
"name": "KeyMatrix Core12",
"short_name": "Core12",
"start_url": "./index.html",
"display": "standalone",
"background_color": "#000000",
"theme_color": "#00ccff",
"icons": [
{
"src": "icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
47 changes: 47 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

const express = require('express');
const fs = require('fs');
const Discord = require('discord.js');
const app = express();
const PORT = 8080;

const coreData = JSON.parse(fs.readFileSync('OM_Gate_Core_v3.json'));

app.use(express.json());
app.use(express.static('.'));

// Resonance activation by glyph
app.post('/resonance', (req, res) => {
const glyph = req.body.glyph;
if (coreData.glyphs[glyph]) {
res.json({ message: `${glyph} → ${coreData.glyphs[glyph]}` });
} else {
res.json({ message: 'Unknown Glyph Code' });
}
});

// Discord Bot
const client = new Discord.Client();
const TOKEN = 'YOUR_DISCORD_BOT_TOKEN';

client.on('ready', () => {
console.log(`Discord Bot Logged in as ${client.user.tag}`);
});

client.on('message', (msg) => {
if (msg.content.startsWith('!resonance')) {
const parts = msg.content.split(' ');
const glyph = parts[1];
if (coreData.glyphs[glyph]) {
msg.channel.send(`Resonance: ${glyph} → ${coreData.glyphs[glyph]}`);
} else {
msg.channel.send('Unknown Glyph Code');
}
}
});

client.login(TOKEN);

app.listen(PORT, () => {
console.log(`Server running at http://localhost:${PORT}`);
});
35 changes: 35 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

body {
font-family: 'Courier New', monospace;
background: radial-gradient(circle, #0d0d0d, #000000);
color: #aad8ff;
text-align: center;
padding: 20px;
}
h1 {
font-size: 28px;
color: #00ccff;
}
#glyph-container {
font-size: 40px;
margin: 20px 0;
color: #7ee3ff;
}
input {
padding: 10px;
margin: 10px;
font-size: 16px;
border-radius: 4px;
}
button {
font-size: 16px;
padding: 10px 20px;
background: #007acc;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background: #005f99;
}
Loading