Coder Social home page Coder Social logo

m1raibot / miraiv2 Goto Github PK

View Code? Open in Web Editor NEW
144.0 15.0 299.0 516 KB

A simple Facebook Messenger Bot like Discord Was Made By Me(CatalizCS) And My Brother SpermLord

Home Page: https://miraiproject.tk

License: Other

JavaScript 100.00%
facebook-messenger-bot facebook-api-chat miraibot miraiproject spermlord catalizcs

miraiv2's Introduction


Logo

MiraiBot

A simple Facebook Messenger Bot made by me(CatalizCS) and my brother SpermLord.

Report Bug · Request Feature

size code-version commits visitors

Table of Contents
  1. Giới thiệu
  2. Hướng dẫn cài đặt
  3. Contributing
  4. License
  5. Contact

introduce

MIRAIPROJECT LÀ GÌ?


MiraiProject thật chất là một dự án mang đến Messenger một trải nghiệm mới cho người dùng bằng cách xây dựng một hệ thống bot dành riêng cho messenger facebook. Dự án này được Catalizcs(Founder) và SpermLord(Co-Founder) xây dựng và duy trì.

miraiv2-product

Installation

Sau đây là các bước cơ bản để có thể cài đặt và vận hành.

Yêu cầu

  • Dung lượng của máy phải trống tầm 1-2gb.
  • Cần một số phần mềm chỉnh sửa file, khuyến khích sử dụng notepad++ hoặc sublime text 3
  • Cần hiểu biết sơ lược qua về node, javascript.
  • Một tài khoản Facebook dùng để làm bot(Khuyến khích nên sử dụng acc đã bỏ hoặc không còn sử dụng để tránh mất acc hay acc bị khoá).
  • Đối với:
    • Windows: Cần cài đặt windows-build-tools.
    • Linux: Cần cài đặt python3 hoặc python2.
    • Android Sử dụng termux để vận hành bot.

Cài Đặt

Windows

  1. Tải về Nodejsgit sau đó cài đặt

    1. Nếu bạn window 7 trở xuống và không thể cài đặt nodejs thì có thể tải file cài đặt nodejs tại đây(win 64bit) hoặc tại đây(win 32bit)
  2. Cài đặt windows-build-tools:

    1. Mở powershell với quyền adminstrator thông qua startMenu
    2. Nhập
    npm install windows-build-tools
  3. Clone source code của bot

    1. chuột phải ở folder cần cài đặt source code nhấn vào git bash
    2. nhập
    git clone https://github.com/miraipr0ject/miraiv2.git miraiv2
  4. Cài đặt các package cần thiết

    1. Mở cmd/terminal ở thư mục bot, LƯU Ý thư mục đó phải có file package.json
    2. Nhập
    npm install
  5. Chỉnh sửa file config

    1. Mở file config.json thông qua notepad++ hoặc sublime text 3 đã cài đặt ở trên
    2. tùy chỉnh mail, password, tên bot, ...
    3. Sao lưu và đóng lại
  6. Lấy appstate

    • Bạn có thể sử dụng fbstate của c3c bot, nhưng cần đổi tên lại thành appstate.json hoặc đổi lại tên trong phần config.json như bước ở trên
    1. Nhập
    node login
    1. Nhập mã xác thực hai lớp
    2. Nếu trên cmd/terminal hiện Đã ghi xong appstate tức là appstate của bạn đã được lưu lại, còn nếu ra dòng có chữ error thì appstate của bạn chưa được lưu lại, bạn cần phải kiểm tra lại thông tin tài khoản, và kiểm tra xem tài khoản của bạn có phải bị checkpoint hay không.
  7. Chạy bot và tận hưởng

    1. Nhập
      npm start
    1. Đợi source code load file và tận hưởng!

Android

  1. Sử dụng google play và tải termux

  2. Mở termux và nhập

    termux-setup-storage && apt update && apt upgrade && pkg install curl -y && bash <(curl -s https://raw.githubusercontent.com/catalizcs/storage-data/master/install.sh)
  3. Đợi mọi package, lib cài đặt thành công là có thể sử dụng

  4. Lấy appstate

    • Bạn có thể sử dụng fbstate của c3c bot, nhưng cần đổi tên lại thành appstate.json hoặc đổi lại tên trong config.json
    1. Nhập
    node login
    1. Nhập mã xác thực hai lớp
    2. Nếu trên cmd/terminal hiện Đã ghi xong appstate tức là appstate của bạn đã được lưu lại, còn nếu ra dòng có chữ error thì appstate của bạn chưa được lưu lại, bạn cần phải kiểm tra lại thông tin tài khoản, và kiểm tra xem tài khoản của bạn có phải bị checkpoint hay không.
  5. về cách sử dụng, edit, vận hành

    1. Để bật được file manager bạn chỉ cần nhập vào termux
    manager
    1. Để vận hành bot, bạn chỉ cần nhập vào termux
    cd ./miraiv2 && npm start

Linux/ubuntu

  1. Cài đặt node và git bằng cách nhập vào terminal

    sudo apt-get install curl
    curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
    sudo apt-get install nodejs git sqlite3 -y
    sudo npm install -g npm
  2. Clone source code của bot bằng cách nhập vào terminal

    git clone https://github.com/miraipr0ject/miraiv2.git miraiv2
  3. Cài đặt các package cần thiết

    1. Mở cmd/terminal ở thư mục bot, LƯU Ý thư mục đó phải có file package.json
    2. Nhập
    npm install
  4. Chỉnh sửa file config

    1. Mở file config.json thông qua notepad++ hoặc sublime text 3 đã cài đặt
    2. tùy chỉnh mail, password, tên bot, ...
    3. Sao lưu và đóng lại
  5. Lấy appstate

    • Bạn có thể sử dụng fbstate của c3c bot, nhưng cần đổi tên lại thành appstate.json hoặc đổi lại tên trong phần config.json như bước ở trên
    1. Nhập
    node login
    1. Nhập mã xác thực hai lớp
    2. Nếu trên cmd/terminal hiện Đã ghi xong appstate tức là appstate của bạn đã được lưu lại, còn nếu ra dòng có chữ error thì appstate của bạn chưa được lưu lại, bạn cần phải kiểm tra lại thông tin tài khoản, và kiểm tra xem tài khoản của bạn có phải bị checkpoint hay không.
  6. Chạy bot và tận hưởng

    1. Nhập
      npm start
    1. Đợi source code load file và tận hưởng!

Video hướng dẫn cài đặt

  1. Windows: Tutorial install for win 10(WIP)
  2. Linux: Tutorial install for linux/ubuntu(WIP)
  3. Android: Tutorial install for android using termux

Contributing

Sự đóng góp của bạn sẽ khiến cho project ngày càng tốt hơn, các bước để bạn có thể đóng góp

  1. Fork project này
  2. Tạo một branch mới chứa tính năng của bạn (git checkout -b feature/AmazingFeature)
  3. Commit những gì bạn muốn đóng góp (git commit -m 'Add some AmazingFeature')
  4. Đẩy branch chứa tính năng của bạn lên (git push origin feature/AmazingFeature)
  5. Tạo một pull request mới và sự đóng góp của bạn đã sẵn sàng để có thể đóng góp!

License

This project is licensed under the GNU General Public License v3.0 License - see the LICENSE file.

Contact

CatalizCS - Facebook - GitHub - [email protected]

SpermLord - GitHub - Facebook

miraiv2's People

Contributors

catalizcs avatar huybopbi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

miraiv2's Issues

setrankup gif không được

setrankup gif bị báo hết dung lượng hoặc lỗi mạng, đã vô mò và thấy là do code trong module bị sai dir gif

Report bugs

Lỗi:
he request cannot be completed because you have exceeded your quota.
khi dùng lệnh sing + tên bài hát
Captur2e

B

H

bot còn chạy không

nếu còn chậy thì hãy giúp tui fix lỗi này

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@miraipr0ject%2ffca-unofficial - Not found
npm ERR! 404
npm ERR! 404 '@miraipr0ject/fca-unofficial@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'miraiv2'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-09-25T12_51_10_127Z-debug.log
exit status 1

Wrong username/password.

Sau khi config email, password, botname trong config.json, và chạy node login.js, thì mình gặp lỗi này { error: 'Wrong username/password.' }

GPL?

The source code is partially obfuscated at multiple places. The GPL mandates that “source code” for a work means the preferred form of the work for making modifications to it. - meaning it must not be obfuscated at all, in any part.

Could you please supply the plain source code without any sort of obfuscation?

.

@@

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.