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

Overview

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

You might also like...

HTML5 audio or video player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.

HTML5 <audio> or <video> player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.

One file. Any browser. Same UI. Author: John Dyer http://j.hn/ Website: http://mediaelementjs.com/ License: MIT Meaning: Use everywhere, keep copyrigh

Jan 8, 2023

A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion

ReactPlayer A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia, M

Jan 4, 2023

Recap let's you recap on your favourite social network videos by downloading them on your devices, from the range of YouTube, SoundCloud, Facebook, Twitter, Instagram, TikTok, Vimeo, Dailymotion, VK, or AOL.

Recap A Social Network Video Downloader Recap let's you recap on your favourite social network videos by downloading them on your devices, from the ra

Sep 24, 2022

Discord Neura - a Discord bot framework built on discord.js

Discord Neura Description Discord Neura is a Discord bot framework built on discord.js. Features Command Handler, Arguments, Preconditions and Listene

Mar 23, 2022

A Simple Music Bot Made Using Discord-Player Package - (Beta)

A Simple Music Bot Made Using Discord-Player Package - (Beta)

Our Music Bot A Highly Powerful Music Bot Without Lavalink Which Is Gonna Have Setup, A Specific Text Channel For Bot Command Feature, And DJ System S

Dec 14, 2022

Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot that handles all your server needs.

Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot that handles all your server needs.

Welcome to Co-Pilot Bot repo! 👋 🤖 Co-Pilot (All-in-one Discord Bot) Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot

Nov 11, 2022

New base bot WhatsApp 🈴 bukan self bot lagi atau buka bot yang bisa di pakai oleh bot sendiri 😎

New base bot WhatsApp 🈴 bukan self bot lagi atau buka bot yang bisa di pakai oleh bot sendiri 😎

Installation • Thanks to • Donate Official Group Bot • Settings Instalasi Heroku Buildpack Click the deploy icon below ! heroku/nodejs https://g

Feb 9, 2022

A discord chatbot made using discord.js

Discord Chatbot A discord chatbot made with Discord.js and Mongoose. 📥 Installation and usage Install Node.js v16.9.0 or higher. Download and unzip t

Jan 1, 2023

This is discord bot specifically made for Community Classroom

This is discord bot specifically made for Community Classroom

Classroom Monitor Bot This bot provides functionalities for 'Community Classroom' discord server. Community Classroom is an initiative 'for the studen

Apr 10, 2022
Comments
  • Không cài được trên Ubuntu 20.02 và Debian 11

    Không cài được trên Ubuntu 20.02 và Debian 11

    Nói chung mình dùng cả Ubuntu với Debian đến đoạn npm Install đều bị lỗi "npm err...", Mình dùng vps của Azure. Mình cd vào miraiv2 và kiểm tra có file package.json rồi nhá

    opened by Caohackerprovip 1
  • GPL?

    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?

    opened by minhducsun2002 2
  • bot còn chạy không

    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

    opened by SiesShinn162 6
Owner
MiraiProject
A Simple Project Was Created By Me(CatalizCS) And My Brother SpermLord
MiraiProject
About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Umut Bayraktar 36 Dec 28, 2022
Discord-Bot - You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have published on my youtube channel.

Discord-Bot You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have publishe

Umut Bayraktar 114 Jan 3, 2023
A discord bot made using discord.js and discord-player

Musx A custom discord bot that can play music in your server ?? Add the bot to your server If you are looking for a music bot for your Discord server

Shashwat Singh 4 Mar 28, 2022
It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with buttons. It can play youtube songs, playlists. This bot code was made by Supreme#2401. It uses djs V12

Lofi-Radio-Music-Bot It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with butt

Diwas Atreya 89 Jan 2, 2023
This bot is a cool Discord bot made in discord.js using Node.JS

Anti-Crosspost Discord Bot This bot is a cool Discord bot made in discord.js using Node.JS. It detects when a user cross-posts a message in multiple c

Muhammad Usman Mithani 4 May 31, 2022
Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Remoklify - Gitlift Discord Bot Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total

Remoklify 3 Mar 20, 2022
A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on websites!

discord-web-api A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on

InvalidLenni 2 Jun 28, 2022
Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js Invite : Click here Vote : Top

null 4 Dec 3, 2022
A Discord bot project made with the npm package discord.js version 14

A Discord bot project made with the npm package discord.js version 14 and it's job to manage mails on a server, and this project includes only one Database: Quick.db. This project also handles Slash commands.

T.F.A 33 Jan 6, 2023
HTML5

One file. Any browser. Same UI. Author: John Dyer http://j.hn/ Website: http://mediaelementjs.com/ License: MIT Meaning: Use everywhere, keep copyrigh

MediaElement.js 8k Dec 27, 2022