Skip to content

A simple Bot chat messenger using personal account. Made by farhan

License

Notifications You must be signed in to change notification settings

frnwot/Goat-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Combined Bot

Base: Messager-bot.
System additions imported from: Personal-bot (copied into system-personal/).

Maintainer

Structure

- .eslintrc.json
- .github
  - .github/FUNDING.yml
  - .github/main.yml
  - .github/workflows
- .gitignore
- .replit
- .vscode
  - .vscode/GoatBot.code-snippets
  - .vscode/settings.json
- CHANGELOG.md
- Copyright.txt
- DOCS.md
- Goat.js
- LICENSE
- README.md
- STEP_INSTALL.md
- account.dev.txt
- account1.dev.txt
- bot
  - bot/autoUptime.js
  - bot/custom.js
  - bot/handler
  - bot/login
- chitron.html
- config.dev.json
- config.json
- configCommands.dev.json
- dashboard
  - dashboard/app.js
  - dashboard/connectDB.js
  - dashboard/css
  - dashboard/images
  - dashboard/js
  - dashboard/middleware
  - dashboard/passport-config.js
  - dashboard/routes
  - dashboard/scripts
  - dashboard/views
- data
  - data/vip.json
- database
  - database/connectDB
  - database/controller
  - database/data
  - database/models
- fb-chat-api
  - fb-chat-api/index.js
  - fb-chat-api/src
  - fb-chat-api/utils.js
- func
  - func/colors.js
  - func/prism.js
- index.js
- languages
  - languages/Ba.lang
  - languages/cmds
  - languages/en.lang
  - languages/events
  - languages/makeFuncGetLangs.js
  - languages/vi.lang
- logger
  - logger/loading.js
  - logger/log.js
  - logger/logColor.js
- models
  - models/vipModel.js
- package-lock.json
- package.json
- render.yaml
- replit.nix
- restoreBackup.js
- scripts
  - scripts/cmds
  - scripts/events
- system-personal
  - system-personal/Script
- update.js
- updater.js
- utils.js
- versions.json

Development

  • Install: npm install (or pnpm install)
  • Run locally: npm run start or npm run dev (depending on package scripts).

Deployment via GitHub Actions

This repo includes a generic Node.js workflow at .github/workflows/deploy.yml.
Set any required secrets in the repo settings (Settings → Secrets and variables → Actions).

Deployment with GitHub Actions

This bot is based on Goats Bot v2 style login (using account.dev.txt).

Setup

  1. Go to your repo → Settings → Secrets and variables → Actions.
  2. Add a new secret:
    • Name: ACCOUNT_DEV_TXT
    • Value: (paste the full cookie content from your account.dev.txt).

Workflow

Every push to main or master will:

  • Install dependencies
  • Recreate account.dev.txt from your secret
  • Run npm run start

Your bot will then run on the GitHub Actions runner.

GitHub Actions Runner Deploy

This project uses account.dev.txt for login (cookie-based). Do not commit this file.

Set up secrets

  • Go to Settings → Secrets and variables → Actions and add:
    • ACCOUNT_DEV_TXT → paste the full contents of your account.dev.txt.

Run on a self-hosted runner (recommended for 24/7)

GitHub-hosted runners stop after a short time and cannot keep a bot online.
To keep the bot running continuously, register a self-hosted runner and give it the self-hosted label.
The workflow will then start the bot with PM2 and keep it alive across runs.

Hosted runner (CI only)

On ubuntu-latest, the workflow will do a short smoke start and exit. Use this to validate builds.

About

A simple Bot chat messenger using personal account. Made by farhan

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published