Files
hack/tools/scripts/llm-key-hunter/results/_cache/content/choeng-rayu_alarmbot.json
T
OpenCode 68a9071cf1 feat: reconcile local master with origin (exa/hot-platform hunters, leaks ledger, latest results)
Local branch had diverged from origin/master (sibling commits on the same base). Rewrote local history linearly on top of origin/master, folding in all local content: exa/hot-platform discovery hunters, leaks ledger, nightly sweep orchestrator, updated .gitignore and skill docs, plus the latest hunt output and vault state. Remote-only files (vault keys, channel scripts) were restored rather than dropped, so the resulting tree is a full union of both sides.
2026-08-07 12:53:47 +08:00

1 line
3.9 KiB
JSON

{"repo": "choeng-rayu/alarmbot", "files": {"strem.js": {"c2d359bb1d1a4493e36d49d1354fce67d33de542": {"t": 1786068267.4617403, "n": 3673, "h": "56bd4d2ac0f5e0c3", "c": "// require('dotenv').config();\n// const TelegramBot = require('node-telegram-bot-api');\n\n// // 1. Get your bot token from @BotFather and add to .env file\n// const token = process.env.TELEGRAM_BOT_TOKEN;\n\n// // 2. Create bot instance\n// const bot = new TelegramBot(token, { polling: true });\n\n// // 3. Message handler\n// bot.on('message', (msg) => {\n// const chatId = msg.chat.id;\n// const userMessage = msg.text;\n// console.log(`Recieved from ${chatID}: \"${userMessage}\"`);\n \n// console.log(`Received from ${chatId}: \"${userMessage}\"`);\n \n// // 4. Reply to user\n// bot.sendMessage(chatId, `You said: \"${userMessage}\"`);\n// });\n\n// // Log bot info\n// bot.getMe().then((me) => {\n// console.log(`Bot ${me.username} is running...`);\n// });\n// console.log('Bot is listening for messages...');\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n// const https = require('https');\n// require('dotenv').config();\n\n// const deepseekApiKey = process.env.DEEPSEEK_API_KEY;\n// const deepseekApiUrl = 'api.deepseek.com';\n\n// async function streamDeepSeekResponse(chatId, bot, messages, model = 'deepseek-chat') {\n// return new Promise((resolve, reject) => {\n// const data = JSON.stringify({\n// model,\n// messages,\n// max_tokens: 1000,\n// temperature: 0.7,\n// stream: true,\n// });\n\n// const options = {\n// hostname: deepseekApiUrl,\n// path: '/chat/completions',\n// method: 'POST',\n// headers: {\n// Authorization: `Bearer ${deepseekApiKey}`,\n// 'Content-Type': 'application/json',\n// 'Content-Length': data.length,\n// },\n// };\n\n// let message = '';\n// let sentMessageId = null;\n\n// const req = https.request(options, (res) => {\n// res.on('data', (chunk) => {\n// const lines = chunk.toString().split('\\n').filter((line) => line.startsWith('data: '));\n// for (const line of lines) {\n// if (line === 'data: [DONE]') {\n// if (message) {\n// if (!sentMessageId) {\n// bot.sendMessage(chatId, message).then((sentMsg) => {\n// resolve(sentMsg.message_id);\n// });\n// } else {\n// bot.editMessageText(message, { chat_id: chatId, message_id: sentMessageId }).then(() => {\n// resolve(sentMessageId);\n// });\n// }\n// }\n// return;\n// }\n// try {\n// const parsed = JSON.parse(line.replace('data: ', ''));\n// const content = parsed.choices[0].delta.content || '';\n// message += content;\n\n// // Update message every 500ms to avoid rate limits\n// if (message.length > 0 && !sentMessageId) {\n// bot.sendMessage(chatId, message).then((sentMsg) => {\n// sentMessageId = sentMsg.message_id;\n// });\n// } else if (sentMessageId && message.length > 0) {\n// setTimeout(() => {\n// bot.editMessageText(message, { chat_id: chatId, message_id: sentMessageId }).catch(() => {});\n// }, 500);\n// }\n// } catch (e) {\n// console.error('Stream parse error:', e);\n// }\n// }\n// });\n\n// res.on('end', () => {\n// if (!message) resolve(null);\n// });\n// });\n\n// req.on('error', (e) => {\n// console.error('Stream error:', e);\n// reject(new Error('Failed to stream response from DeepSeek.'));\n// });\n\n// req.write(data);\n// req.end();\n// });\n// }\n\n// module.exports = { streamDeepSeekResponse };"}}}}