Skip to content

ItzPriyanshi/QueenBotV2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

banner

Queen Bot V2 - Chat Messenger Bot

Nodejs Support v20.x size code-version visitors license


Table of Contents


FCA Fixed By Priyansh Rajput

This version includes fixes by Priyansh Rajput to the FCA (Facebook Chat API) implementation.

Key Modifications

  • Updated files:
    • bot/login/login.js
    • package.json
    • package-lock.json

Credits

  • The Fixed Version Of GoatBot By Priyansh Rajput here
  • You Can Follow Priyansh Rajput
  • Show Some Support For His Efforts ⭐

Recommendations

  • Leave account.dev.txt blank and put your cookies in account.txt.
  • Don't put your cookies inside account.dev.txt—that's only for configuration.

📝 Note

  • This is a messenger chat bot using a personal account, utilizing an unofficial API (Origin here). This may lead to your Facebook account being locked due to spam or other reasons.
  • It is recommended to use a clone account (one that you're willing to discard at any time).
  • I am not responsible for any problems that may arise from using this bot.

🚧 Requirement

📝 Tutorial

Tutorials are available on YouTube:

Summary instructions can be found here.

💡 How it Works

  • The bot uses the unofficial Facebook API to send and receive messages from users.

  • When a new event occurs (such as a message, reaction, new user joining, or user leaving the chat), the bot emits an event to the handlerEvents.

  • The handlerEvents processes the event and executes the corresponding command:

    • onStart:

      • Checks if the user has called a command.
      • If yes, it verifies if the user is banned or if the admin box only mode is enabled. If not, it executes the command.
      • Checks the user's permissions and whether the command's cooldown has expired before executing it.
    • onChat:

      • Triggered when the user sends a message.
      • Checks the user's permissions and executes the command if allowed.
    • onFirstChat:

      • Triggered when the bot receives the first message from the chat since it started.
      • Functions similarly to onChat.
    • onReaction:

      • Triggered when a user reacts to a message with a specific message ID.
      • Automatically adds a method to delete the message from the set if called.
    • onReply:

      • Triggered when a user replies to a message with a specific message ID.
      • Similar to onReaction, it checks permissions and executes the command if allowed.
    • onEvent:

      • Triggered for new events (e.g., user joins/leaves, admin changes).
      • Loops through all onEvent commands and executes them based on the commandName.
    • handlerEvent:

      • Runs when a new event occurs and processes all event commands set in GoatBot.eventCommands.

🔔 Notifications for Updates

  • Click on the Watch button in the upper right corner of the screen, select Custom, and choose Pull requests and Releases. Click Apply to get notified of new updates.

🆙 How to Update

Tutorials are available on YouTube:

🛠️ Creating New Commands

  • Instructions for creating new commands can be found here.

💭 Support

If you encounter major coding issues with this bot, please join and ask for help:

📚 Supported Languages

  • Currently, the bot supports 2 languages:

    • en: English
    • vi: Vietnamese
  • Change the language in the config.json file.

  • You can customize the language in the folders languages/, languages/cmds/, and languages/events/.

📌 Common Problems

📌 Error 400: redirect_uri_mismatch

1. Enable Google Drive API: Tutorial

2. Add uri https://developers.google.com/oauthplayground (not https://developers.google.com/oauthplayground/) to Authorized redirect URIs in OAuth consent screen: Tutorial

3. Choose https://www.googleapis.com/auth/drive and https://mail.google.com/ in OAuth 2.0 Playground: Tutorial

📌 Error for site owners: Invalid domain for site key

1. Go to https://www.google.com/recaptcha/admin

2. Add domain repl.co (not repl.com) to Domains in reCAPTCHA v2 Tutorial

📌 GaxiosError: invalid_grant, unauthorized_client

- If you don't publish the project in google console, the refresh token will expire after 1 week and you need to get it back. Tuatorial

📌 GaxiosError: invalid_client

- Check if you have entered your google project client_id correctly Tuatorial

📌 Error 403: access_denied

- If you don't publish the project in google console only the approved accounts added to the project can use it Tuatorial

DO NOT USE THE ORIGINAL UNDERGRADUATE VERSION

  • The use of unknown source code can lead to the device being infected with viruses, malware, hacked social accounts, banks, ...
  • Goat-Bot-V2 is only published at https://github.com/ntkhang03/Goat-Bot-V2, all other sources, all forks from other github, replit,... are fake, violate policy
  • If you use from other sources (whether accidentally or intentionally) it means that you are in violation and will be banned without notice

📸 Screenshots

  • Bot

Rank system
  • Rank card:

  • Rankup notification:

  • Custom rank card:

Weather

Auto send notification when have user join or leave box chat (you can custom message)

Openjourney

GPT

  • Dashboard

Home:

Stats:

Login/Register:

Dashboard Thread:

Custom on/off:

Custom welcome message (similar with leave, rankup (coming soon), custom command (coming soon))

Copyright (C)

📜 License

VIETNAMESE

  • Nếu bạn vi phạm bất kỳ quy tắc nào, bạn sẽ bị cấm sử dụng dự án của tôi
  • Không bán mã nguồn của tôi
  • Không tự xưng là chủ sở hữu của mã nguồn của tôi
  • Không kiếm tiền từ mã nguồn của tôi (chẳng hạn như: mua bán lệnh, mua bán/cho thuê bot, kêu gọi quyên góp, v.v.)
  • Không xóa/sửa đổi credit (tên tác giả) trong mã nguồn của tôi

ENGLISH

  • If you violate any rules, you will be banned from using my project
  • Don't sell my source code
  • Don't claim my source code as your own
  • Do not monetize my source code (such as: buy and sell commands, buy and sell bots, call for donations, etc.)
  • Don't remove/edit my credits (author name) in my source code

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7