new config file

This commit is contained in:
synt-xerror
2026-03-16 21:56:58 -03:00
parent 5fbe257625
commit 544dc770cd
7 changed files with 246 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# development tool
# ferramenta de desenvolvimento apenas, pode apagar se quiser
# ./deploy <commit> <branch> <version (if branch=master)>
COMMIT_MSG="$1"
@@ -12,15 +12,6 @@ if [ -z "$COMMIT_MSG" ] || [ -z "$BRANCH" ]; then
exit 1
fi
echo "Rewriting config.js"
cat > "src/config.js" << 'EOF'
export const CLIENT_ID = "bot_permanente";
export const BOT_PREFIX = "🤖 *ManyBot:* ";
export const CHATS = [
// coloque os chats que quer aqui
];
EOF
# mudar para a branch
git checkout $BRANCH || { echo "Error ao change to $BRANCH"; exit 1; }