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
/
bot
RSK World
slack-bot-assistant
Slack Bot Assistant - Python + Slack API + SQLite + PHP Dashboard + Bot Commands + Automation
bot
  • __pycache__
  • app.py30.8 KB
  • config.py1.9 KB
  • helpers.py5.5 KB
  • models.py4.4 KB
  • scheduler.py3.1 KB
  • utils.py12.6 KB
config.py
bot/config.py
Raw Download
Find: Go to:
"""
Slack Bot Assistant - Configuration
Developer: Molla Samser (Founder, RSK World)
Design & Testing: Rima Khatun
Website: https://rskworld.in
Contact: hello@rskworld.in | +91 93305 39277
Year: 2026
"""

import os
from dotenv import load_dotenv

# Load environment variables
load_dotenv()

class Config:
    """Centralized configuration management"""
    
    # Slack API Configuration
    SLACK_BOT_TOKEN = os.environ.get("SLACK_BOT_TOKEN", "")
    SLACK_SIGNING_SECRET = os.environ.get("SLACK_SIGNING_SECRET", "")
    SLACK_APP_TOKEN = os.environ.get("SLACK_APP_TOKEN", "")
    
    # Database Configuration
    DATABASE_URL = os.environ.get("DATABASE_URL", "sqlite:///bot_data.db")
    
    # External API Keys (optional)
    OPENWEATHER_API_KEY = os.environ.get("OPENWEATHER_API_KEY", "")
    GOOGLE_TRANSLATE_API_KEY = os.environ.get("GOOGLE_TRANSLATE_API_KEY", "")
    
    # Bot Settings
    DEFAULT_PERSONALITY = "Professional"
    DEFAULT_LANGUAGE = "English"
    SUPPORTED_LANGUAGES = ["English", "Hindi", "Spanish", "French", "German"]
    SUPPORTED_PERSONALITIES = ["Professional", "Casual", "Technical", "Friendly", "Formal"]
    
    # Feature Flags
    ENABLE_DATABASE = True
    ENABLE_SCHEDULING = True
    ENABLE_FILE_HANDLING = True
    ENABLE_WEATHER = bool(os.environ.get("OPENWEATHER_API_KEY", ""))
    ENABLE_TRANSLATION = bool(os.environ.get("GOOGLE_TRANSLATE_API_KEY", ""))
    
    # Logging
    LOG_LEVEL = os.environ.get("LOG_LEVEL", "INFO")
    LOG_FILE = os.environ.get("LOG_FILE", "bot.log")
    
    # Reminder Settings
    REMINDER_CHECK_INTERVAL = 60  # seconds
    MAX_REMINDERS_PER_USER = 50
    
    # Meeting Summary Settings
    MEETING_SUMMARY_MESSAGE_COUNT = 50  # Number of recent messages to analyze
    
    # Channel Management
    AUTO_ARCHIVE_INACTIVE_DAYS = 90
    MIN_CHANNEL_MEMBERS = 2

59 lines•1.9 KB
python
🚀 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