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
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
slack-bot-assistant
RSK World
slack-bot-assistant
Slack Bot Assistant - Python + Slack API + SQLite + PHP Dashboard + Bot Commands + Automation
slack-bot-assistant
  • static
  • templates
  • .env.example73 B
  • .gitignore61 B
  • LICENSE1.2 KB
  • README.md1.9 KB
  • RELEASE_NOTES.md1.3 KB
  • app.py1.7 KB
  • bot_logic.py4.3 KB
  • database.py1.8 KB
  • models.py2.2 KB
  • requirements.txt58 B
prepare_knowledge_base.pydatabase.py.env.example
database.py
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"

from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy()

def init_db(app):
    db.init_app(app)
    with app.app_context():
        db.create_all()
        # Seed initial data if any core table is empty
        from models import Product, User, Order
        if Product.query.count() == 0 or User.query.count() == 0:
            seed_data()

def seed_data():
    from models import Product, Order, User
    products = [
        Product(name="Eco-Friendly Water Bottle", description="Stainless steel, 500ml", price=25.00, category="Accessories"),
        Product(name="Wireless Noise-Cancelling Headphones", description="Bose QuietComfort 45", price=329.00, category="Electronics"),
        Product(name="Organic Cotton T-Shirt", description="Soft and breathable, variety of colors", price=15.00, category="Clothing"),
        Product(name="Smart Watch with Health Tracking", description="Monitors heart rate, sleep, and activity", price=199.00, category="Electronics"),
        Product(name="Ergonomic Office Chair", description="Adjustable height and lumbar support", price=150.00, category="Furniture")
    ]
    db.session.bulk_save_objects(products)
    
    # Add a sample user with points
    sample_user = User(name="Molla Samser", email="samser@rskworld.in", loyalty_points=500)
    db.session.add(sample_user)
    
    # Add a sample order for tracking demo
    sample_order = Order(order_number="ORD-101", customer_email="samser@rskworld.in", total_amount=479.00, status="Shipped", points_earned=47)
    db.session.add(sample_order)
    
    db.session.commit()
42 lines•1.8 KB
python
.env.example
Raw Download
Find: Go to:
OPENAI_API_KEY=your_openai_api_key_here
FLASK_ENV=development
DEBUG=True
4 lines•73 B
text

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