-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·37 lines (30 loc) · 1.17 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Colors for output
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color
echo -e "${YELLOW}Setting up FOIL Bots monorepo with Poetry...${NC}"
# Check if Poetry is installed
if ! command -v poetry &> /dev/null; then
echo -e "${RED}Poetry not found. Installing Poetry...${NC}"
curl -sSL https://install.python-poetry.org | python3 -
fi
# Install dependencies at the root level only
echo -e "${GREEN}Installing dependencies...${NC}"
poetry lock
poetry install
# Set up environment files if they don't exist
if [ ! -f "loom_bot/.env" ]; then
echo -e "${YELLOW}Creating loom_bot .env file from template...${NC}"
cp loom_bot/.env.example loom_bot/.env
echo -e "${RED}Don't forget to edit loom_bot/.env with your configuration!${NC}"
fi
if [ ! -f "garb_bot/.env" ]; then
echo -e "${YELLOW}Creating garb_bot .env file from template...${NC}"
cp garb_bot/.env.example garb_bot/.env
echo -e "${RED}Don't forget to edit garb_bot/.env with your configuration!${NC}"
fi
echo -e "${GREEN}Setup complete!${NC}"
echo -e "${YELLOW}To run loom-bot:${NC} poetry run loom-bot"
echo -e "${YELLOW}To run garb-bot:${NC} poetry run garb-bot"