Files
robin797860_stock-watcher/scripts/install.sh

26 lines
903 B
Bash
Raw Normal View History

#!/bin/bash
# Install stock-watcher skill dependencies and initialize watchlist directory
set -e
echo "Installing stock-watcher skill dependencies..."
# Create the watchlist directory
mkdir -p ~/.clawdbot/stock_watcher
# Create empty watchlist file if it doesn't exist
WATCHLIST_FILE="$HOME/.clawdbot/stock_watcher/watchlist.txt"
if [ ! -f "$WATCHLIST_FILE" ]; then
touch "$WATCHLIST_FILE"
echo "Created empty watchlist file: $WATCHLIST_FILE"
fi
# Check if required Python packages are available
if ! python3 -c "import requests, bs4" 2>/dev/null; then
echo "Warning: Required Python packages (requests, beautifulsoup4) not found."
echo "You may need to install them with: pip install requests beautifulsoup4"
fi
echo "Stock-watcher skill installed successfully!"
echo "Watchlist directory: ~/.clawdbot/stock_watcher/"
echo "Watchlist file: ~/.clawdbot/stock_watcher/watchlist.txt"