This commit is contained in:
RichardDillman
2025-11-23 01:33:33 -05:00
parent 1a41318db5
commit c4cfcf6eb8
4 changed files with 45 additions and 19 deletions

15
scripts/postinstall.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Auto-create .env from .env.example if it doesn't exist
if [ ! -f .env ]; then
echo "📝 Creating .env file from .env.example..."
cp .env.example .env
echo "✅ .env file created successfully!"
echo ""
echo "⚠️ IMPORTANT: Please edit .env and add your Telegram bot token:"
echo " 1. Get token from @BotFather on Telegram"
echo " 2. Update TELEGRAM_BOT_TOKEN in .env"
echo ""
else
echo "✅ .env file already exists"
fi