UNPKG

meta-horizonn-fca-huh

Version:

Facebook-Chat-API Protect and Deploy by Kanzu and HZI Team. Kem is redeveloped. Rename package is Meta Horizonn and package supported ChatBot Messenger. and make it lightweight package by jonell huh

227 lines (159 loc) 8.1 kB
[![Socket Badge](https://socket.dev/api/badge/npm/package/meta-horizonn)](https://socket.dev/npm/package/meta-horizonn) [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/JustKemForFun/JustKemForFun) ![Pastebin Badge](https://img.shields.io/badge/Pastebin-02456C?logo=pastebin&logoColor=fff&style=flat-square) <!-- [![NPM](https://nodei.co/npm/meta-horizonn.png?downloads=true)](https://www.npmjs.com/package/meta-horizonn) --> <!-- [![NPM Version](https://img.shields.io/npm/v/meta-horizonn.svg?style=flat-square)](https://www.npmjs.org/package/meta-horizonn) [![Minimum Node.JS Version](https://badgen.net/npm/node/meta-horizonn)](https://npmjs.com/package/meta-horizonn) --> <!-- <p align="center"> <a href="https://nodejs.org/dist/v16.20.0"> <img src="https://img.shields.io/badge/Nodejs%20Support-16.x-brightgreen.svg?style=flat-square" alt="Nodejs Support v16.x"> </a> </p> --> > [!NOTE] This is a messenger chat bot using a personal account. [Origin here](https://github.com/Schmavery/facebook-chat-api) and this may lead to facebook account being locked due to spam or other reasons. So, I recommend using a clone account (one that you're willing to throw away at any time)<br> ***I am not responsible for any problems that may arise from using this bot.*** > [!IMPORTANT] The contents of this repository may not be used for AI or anything else that Kem deems equivalent. Please be aware of this. <!-- ## Simple alerts > [!NOTE] > This is a note. > [!TIP] > This is a tip. (Supported since 14 Nov 2023) > [!IMPORTANT] > Crutial information comes here. > [!CAUTION] > Negative potential consequences of an action. (Supported since 14 Nov 2023) > [!WARNING] > Critical content comes here. --> <!-- ## **List Info** - [🚧 **Requirement**](#-requirement) - [📚 **Support Languages in source code**](#-support-languages-in-source-code) - [📜 **License**](#-license) --> > [!WARNING] > *There is a risk of your account being banned after running the code, so please ensure proper account management and handling. If it happens, please try logging in again and retrieve your AppState.* ## 🚧 **Requirement** - Node.JS 14.x [Download](https://nodejs.org/dist/v14.17.0) | [Home](https://nodejs.org/en/download/) | [Other versions](https://nodejs.org/en/download/releases/) - Knowledge of **programming**, JavaScript, Node.JS ## **📝 Important Note <br> Quan Trọng !!!** [ ENG ]: This package require NodeJS 14.17.0 to work properly. [ VIE ]: Gói này yêu cầu NodeJS 14.17.0 để hoạt động bình thường. ## **📝 Notification <br> Thông Báo!** [ ENG ]: This is The Defunct Project fca-horizon-remastered and Redeveloped By Kem ! [ VIE ]: Đây Là Dự Án fca-horizon-remastered Đã Bị Khai Tử và Nhà Phát Triển Lại Bởi Kem ! ------------------------------------ + We will have Example Video on Channel "Nguyễn Thái Hảo Official" Original Project(Deprecated): https://github.com/Schmavery/facebook-chat-api Chúc Các Bạn Một Ngày Tốt Lành! Cảm Ơn Vì Đã Sài Sản Phẩm của HZI, Thân Ái. ***KANZUWAKAZAKI(15/04/2023)<br> KEM.RELEASE(25/08/2023) | (09/12/2023)*** ## **📚 Support Languages in source code** - Currently, FCA supports 2 languages: - [x] `en: English` - [x] `vi: Vietnamese` + Support English, VietNamese !, + Change language in `FastConfigFca.json` file ```json "Language": "vi" ``` + Find Line Language Change: ```json "Language": "en" ``` + All bot if using listenMqtt first. # **📜 API Cho ChatBot Messenger** Facebook Đã Có Và Cho Người Dùng Tạo API Cho Chatbots 😪 Tại Đey => **[Đây Nè](https://developers.facebook.com/docs/messenger-platform).** ### ***📜 API Này Có Thể Khiến Cho Bạn Payy Acc Như Cách Acc Bạn Chưa Từng Có, Hãy Chú Ý Nhé =))*** Lưu Ý ! Nếu Bạn Muốn Sài API Này Hãy Xem Document Tại **[Đây Nè](https://github.com/Schmavery/facebook-chat-api).** ## **📌 Tải Về** Nếu Bạn Muốn Sử Dụng, Hãy Tải Nó Bằng Cách: ```bash npm i meta-horizonn ``` or ```bash npm install meta-horizonn ``` Nó Sẽ Tải Vô node_modules (Lib Của Bạn) - Lưu Ý Replit Sẽ Không Hiện Đâu Mà Tìm 😪 ```javascript //Tuỳ thuộc vào file thì nó sẽ hiện node_module nhé 🐧 ``` ### **📌 Tải Bản Mới Nhất Hoặc Update** Nếu Bạn Muốn Sử Dụng Phiên Bản Mới Nhất Hay Cập Nhật Thì Hãy Vô Terminal Hoặc Command Promt Nhập : ```bash npm install meta-horizonn@latest ``` Hoặc ```bash npm i meta-horizonn@latest ``` ## ***Nếu Bạn Muốn Test API =))*** Lợi Ích Cho Việc Này Thì Bạn Sẽ Không Tốn Thời Gian Pay Acc Và Có Acc 😪 Hãy Sử Dụng Với Tài Khoản Thử Nghiệm => **[Facebook Whitehat Accounts](https://www.facebook.com/whitehat/accounts/).** ## **📌 Cách Sử Dụng** ```javascript const login = require("meta-horizonn"); // lấy từ lib ra // đăng nhập login({ email: "Gmail Account", password: "Mật Khẩu Facebook Của Bạn" }, (err, api) => { if(err) return console.error(err); // trường hợp lỗi // tạo bot tự động nhái theo bạn: api.listenMqtt((err, message) => { api.sendMessage(message.body, message.threadID); }); }); ``` Kết Quả Là Nó Sẽ Nhái Bạn Như Hình Dưới: <img width="517" alt="screen shot 2016-11-04 at 14 36 00" src="https://cloud.githubusercontent.com/assets/4534692/20023545/f8c24130-a29d-11e6-9ef7-47568bdbc1f2.png"> Nếu Bạn Muốn Sử Dụng Nâng Cao Thì Hãy Sử Dụng Các Loại Bot Được Liệt Kê Ở Trên ! ## **📌 Danh Sách** Bạn Có Thể Đọc Full APIs Tại => [here](DOCS.md). ## **🛠️ Cài Đặt Cho Mirai:** Bạn Cần Vô File Mirai.js Hoặc Main.js,... Sau Đó Tìm Đến Dòng ```js const login = require('tùy bot'); /* Maybe | Có thể là : const login = require('fca-horizon-remastered'); const login = require('@maihuybao/fca-Unofficial'); const login = require('fca-xuyen-get'); const login = require('fca-unofficial-force'); const login = require('fca-disme'); const login = require('...'); ... */ ``` Và Thay Nó Bằng: ```js const login = require('meta-horizonn'); ``` Sau Đó Thì Chạy Bình Thường Thôi ! ## ***💭 Tự Nghiên Cứu !!*** Nếu Bạn Muốn Tự Nghiên Cứu Hoặc Tạo Bot Cho Riêng Bạn Thì Bạn Hãy Vô Cái Này Đọc Chức Năng Của Nó Và Cách Sử Dụng => [Link](https://github.com/Schmavery/facebook-chat-api#Unofficial%20Facebook%20Chat%20API) ------------------------------------ ### **📌 Lưu Lại Thông Tin Đăng Nhập.** Để Lưu Lại Thì Bạn Cần 1 AppState Kiểu (Cookie, etc,..) Để Lưu Lại Hoặc Là Sử Dụng Mã Login Như Trên Để Đăng Nhập ! Và Chế Độ Này Đã Có Sẵn Trong 1 Số Bot Việt Nam Nên Bạn Cứ Yên Tâm Nhé ! ***__Hướng Dẫn Với AppState__*** ```js const fs = require("fs"); const login = require("meta-horizonn"); var credentials = { email: "FB_EMAIL", password: "FB_PASSWORD" }; // thông tin tài khoản login(credentials, (err, api) => { if(err) return console.error(err); // đăng nhập fs.writeFileSync('appstate.json', JSON.stringify(api.getAppState(), null,'\t')); //tạo appstate }); ``` ## ***📜 C3C - FBSTATE*** Hoặc Dễ Dàng Hơn ( Chuyên Nghiệp ) Bạn Có Thể Dùng => **[c3c-fbstate](https://github.com/c3cbot/c3c-fbstate)** Để Lấy FbState Và Đổi Tên Lại Thành AppState Cũng Được ! (appstate.json) ## ***📜 License*** • Give us a star! <br/> • This project is licensed under the MIT License <br/> • Go to [LICENSE](https://github.com/JustKemForFun/Meta-Horizon/blob/main/LICENSE) file ------------------------------------ ## ***📌 FAQs*** **FAQs** => ***[Link](https://github.com/Schmavery/facebook-chat-api#FAQS)*** ------------------------------------ ***Thanks You For Using Meta-Horizonn***