Giter Club home page Giter Club logo

chino-chan-bot's Introduction

1. Những thứ cần có:

  • 1 tài khoản Facebook để làm bot. Nếu bạn chỉ muốn để test thì dùng Facebook Whitehat Account để tránh bị ban account nhé.
  • Nếu bạn chưa tải Node.JS thì bạn có thể tải nó ở đây.

2. Cách tạo:

  • Clone source code hoặc tải về từ GitHub:
git clone https://github.com/Tungchaphet/Chino-chan-Bot.git
cd Chino-chan-Bot
  • Tải các thư viện npm cần thiết:
npm i
  • Đặt token OpenAI của bạn vào file config.js. Bạn có thể vào đây để tạo API Key nhé.
// ./config/config.js
const config = {
    prefix: '/', // Bạn có thể thay prefix ở đây nhé.
    openaikey: '', // Đưa token OpenAI của bạn vô đây
    cache: new NodeCache({
        checkperiod: 10000,
        deleteOnExpire: true
    }),
    ratelimit: new Map(),
    commands: new Map(),
    aliases: new Map()
}

module.exports = config
  • Copy và paste json cookies tài khoản của bạn vô file fbstate.json nằm trong folder config. Lấy cookies tài khoản bằng cách sử dụng chrome extension c3c-fbstate.

  • Chạy bot:

npm start

Và khi terminal của bạn xuất hiện username đã online. thì bạn đã thành công rồi đấy, chúc bạn may mắn :3

3. Những lệnh của bot:

  • Prefix mặc định của bot là: /. Bạn có thể thay prefix bạn muốn trong config.js.
  • /ask [message]: Để nói chuyện với bot (ChatGPT). Ví dụ: /ask ChatGPT là cái gì?
  • /roll [number]: Ra số ngẫu nhiên với số tối đa là [number]. Ví dụ: /roll 300
  • /ping: Kiểm tra độ trễ của bot. Độ trễ có thể sai do đồng hồ máy bạn.
  • /uptime: Xem thời gian chạy của bot.

chino-chan-bot's People

Contributors

misonomikadev avatar

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.