Initial commit with translated description
This commit is contained in:
26
scripts/install.sh
Normal file
26
scripts/install.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user