-
-
Notifications
You must be signed in to change notification settings - Fork 3
KeyMatrix_Core12_Release #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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" | ||
| } | ||
| } |
| 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> |
| 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, | ||||||||||||||||||
KeyMatrix marked this conversation as resolved.
Show resolved
Hide resolved
KeyMatrix marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||
| method: 'POST, | |
| method: 'POST', |
Copilot
AI
May 14, 2025
There was a problem hiding this comment.
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.
| method: 'POST, | |
| method: 'POST', |
Copilot
AI
May 15, 2025
There was a problem hiding this comment.
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',
| method: 'POST, | |
| method: 'POST', |
Copilot
AI
May 17, 2025
There was a problem hiding this comment.
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".
| method: 'POST, | |
| method: 'POST', |
| 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" | ||
| } | ||
| ] | ||
| } |
| 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}`); | ||
| }); |
| 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; | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.