help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
slack-bot-assistant
/
static
/
js
RSK World
slack-bot-assistant
Slack Bot Assistant - Python + Slack API + SQLite + PHP Dashboard + Bot Commands + Automation
js
  • admin.js1.4 KB
  • chat.js2.5 KB
admin.js
static/js/admin.js
Raw Download
Find: Go to:
/*
Project: E-commerce Chatbot
Developed by: Molla Samser
Team: Rima Khatun (Designer & Tester)
Website: https://rskworld.in
Email: support@rskworld.in
Year: 2026
"Empowering E-commerce with AI"
*/

document.addEventListener('DOMContentLoaded', async () => {
    // Fetch stats
    try {
        const prodRes = await fetch('/api/products');
        const prods = await prodRes.json();
        document.getElementById('prod-count').innerText = prods.length;

        const orderRes = await fetch('/api/orders');
        const orders = await orderRes.json();
        document.getElementById('order-count').innerText = orders.length;
    } catch (e) {
        console.error("Error fetching stats:", e);
    }

    // Initialize Chart
    const ctx = document.getElementById('analyticsChart').getContext('2d');
    new Chart(ctx, {
        type: 'line',
        data: {
            labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
            datasets: [{
                label: 'Bot Assisted Sales ($)',
                data: [12000, 19000, 15000, 25000, 22000, 30000],
                borderColor: '#6366f1',
                tension: 0.4,
                fill: true,
                backgroundColor: 'rgba(99, 102, 241, 0.1)'
            }]
        },
        options: {
            responsive: true,
            plugins: {
                legend: { position: 'top' }
            }
        }
    });
});
48 lines•1.4 KB
javascript
🚀 Support RSK World

Subscribe to our YouTube channel for latest tutorials & updates!



Click subscribe & support our work ❤️

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer