I successfully built and deployed a massive upgrade to Slacky Wacky, adding four powerful new features! Here is exactly how I implemented them:
better-sqlite3 to set up a lightweight database. When a user asks a question, the bot retrieves their last 10 messages so the Groq API has multi-turn context:const db = new Database('chat_history.db');
db.exec(\`
CREATE TABLE IF NOT EXISTS messages (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id TEXT,
role TEXT,
content TEXT
)
\`);
function getHistory(userId) {
return db.prepare('SELECT role, content FROM messages WHERE user_id = ? ORDER BY id DESC LIMIT 10').all(userId).reverse();
}
await respond({
blocks: [
{
type: "section",
text: { type: "mrkdwn", text: \`*Answer:*\\n\${groqAnswer}\` }
}
]
});
index.js to log system metrics and API latency in real time. I then configured a custom reverse proxy domain (sandeepkurma.hackclub.app) inside the dashboard pointing to target port 3000:app.get('/', (req, res) => {
res.send(\`<h1>Slack Bot Live Dashboard</h1><p>Latest Latency: \${latestLatency} ms</p>\`);
});
const modelToUse = containsImage ? 'llama-3.2-11b-vision-preview' : 'llama-3.3-70b-versatile';
Everything is fully verified, tested, and running 24/7 on my container!
I rigorously tested the active slash commands in Slack. All of them are running successfully on Nest 24/7!Tested:- /slacky-wacky-help -> Lists the commands and their usage successfully.- /slacky-wacky-fact -> Returns a random mind-blowing fun fact.The bot handles everything asynchronously using Socket Mode, and the responses are extremely fast! Everything is ready and fully verified.
I built Slacky-Wacky, a fully custom Slack bot powered by the Llama 3.3 model from Groq! The bot handles interactive Slash commands through Socket Mode including:- /slacky-wacky-ask - An AI Q&A assistant to query Llama 3.3.- /slacky-wacky-status - Check system/bot status.- /slacky-wacky-help - Provide clear usage directions.- /slacky-wacky-joke - Tell funny developer jokes.- /slacky-wacky-fact - Share mind-blowing science & history facts.- /slacky-wacky-define - An interactive dictionary command.I resolved integration quirks like Bolt channel requirements, configured SSH keys for Nest, and successfully logged over 1 hour of development time to Hackatime!
I completely changed it from a basic, boring theme into something creatively themed, such as a mountain with multiple different themes, and a sleeker look similar to Apple’s Mac-looking browser tabs.
Completely changed to the themes, debugged the entire thing. Added a new AI window to learn more about the OS. Powered by GROQ
I completely changed it from a basic, boring theme into something creatively themed, such as a mountain with multiple different themes, and a sleeker look similar to Apple’s Mac-looking browser tabs.
I made the theme in essential elements, but I’m currently working on changing the theme from something modern to something more scenic and changing the name from walky os to Mountain OS, make it more mountain-themed and put nice scenic images.