EdgeAIG's picture
download
raw
755 Bytes
#!/bin/bash
# Setup script for Pi Telegram Agent
set -e
echo "Setting up Pi Telegram Agent..."
# Check Node.js
if ! command -v node &> /dev/null; then
echo "Installing Node.js 22..."
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt-get install -y nodejs
fi
echo "Node.js: $(node -v)"
echo "npm: $(npm -v)"
# Install Pi
echo "Installing Pi..."
npm install -g @earendil-works/pi-coding-agent@latest
# Install Telegram extension
echo "Installing Telegram extension..."
pi install npm:@artyomspace/pi-telegram-connect
# Create config directory
mkdir -p ~/.pi/agent
echo ""
echo "Setup complete!"
echo ""
echo "Next steps:"
echo "1. Copy .env.example to .env"
echo "2. Add your API keys to .env"
echo "3. Run ./scripts/run.sh"

Xet Storage Details

Size:
755 Bytes
·
Xet hash:
40beaeeca9198d099e913bec18041c7dfac342660e3eb7cfa82dda4d7e3fca2b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.