[repo] reorganization using plugins instead of built-in commands, [plugin] new game: forca, [dev] changes on log format, [config] removed botMsg, [plugin] on stickers, you can create just one sending an image or replying to one, [setup] exec permissions and comand to install Chrome
This commit is contained in:
29
setup
29
setup
@@ -162,6 +162,13 @@ log_info "Instalando dependências npm"
|
||||
export PUPPETEER_SKIP_DOWNLOAD=1
|
||||
run_cmd npm install
|
||||
|
||||
# ------------------------
|
||||
# Chrome Puppeeter
|
||||
# ------------------------
|
||||
log_info "Instalando Chrome"
|
||||
|
||||
npx puppeteer browsers install chrome
|
||||
|
||||
# ------------------------
|
||||
# Diretórios
|
||||
# ------------------------
|
||||
@@ -189,29 +196,9 @@ else
|
||||
)
|
||||
fi
|
||||
|
||||
chmod +x bin/*
|
||||
log_debug "Total de arquivos para baixar: ${#files[@]}"
|
||||
|
||||
# ------------------------
|
||||
# Config
|
||||
# ------------------------
|
||||
log_info "Criando arquivo de configuração"
|
||||
|
||||
cat > "src/config.js" << 'EOF'
|
||||
export const CLIENT_ID = "bot_permanente";
|
||||
export const BOT_PREFIX = "🤖 *ManyBot:* ";
|
||||
export const CMD_PREFIX = "!";
|
||||
export const CHATS = [
|
||||
// coloque os chats que quer aqui
|
||||
];
|
||||
|
||||
EOF
|
||||
|
||||
if [[ -f src/config.js ]]; then
|
||||
log_ok "Arquivo de configuração criado"
|
||||
else
|
||||
log_error "Erro durante criação do arquivo de configuração"
|
||||
fi
|
||||
|
||||
# ------------------------
|
||||
# Download
|
||||
# ------------------------
|
||||
|
||||
Reference in New Issue
Block a user