Giter Club home page Giter Club logo

bot-noi-tu's Introduction

Phở Bò | Bot nối từ tiếng Việt

BOT nối từ tiếng Việt trên Discord! | INVITE ME! | Discord Support Server

Nguồn ngữ liệu tiếng Việt

https://github.com/undertheseanlp/dictionary (ngữ liệu chính, có chỉnh sửa để phù hợp với trò chơi)

https://github.com/lvdat/phobo-contribute-words (ngữ liệu đóng góp bởi cộng đồng ở Discord Support Server)

Cài đặt BOT trên server riêng

Tham gia vào Discord Support để được hỗ trợ self-hosted Bot.

Yêu cầu

  • Hệ điều hành: Linux, MacOS, Windows, có cài đặt:
    • NodeJS >= 18 (BOT được phát triển trên NodeJS 20.x)
    • Có cài đặt gói yarn (npm i -g yarn)
    • Git

Cài đặt

  • Clone repo về máy:
git clone https://github.com/lvdat/bot-noi-tu && cd bot-noi-tu
  • Cài đặt các gói cần thiết:
yarn
  • Tạo tệp tin .env với nội dung là TOKEN của BOT đã tạo trong Discord Developer Portal
BOT_TOKEN=...

Không bắt buộc: config thêm REPORT_CHANNEL để có thể dùng lệnh report.

  • Chạy BOT lần đầu để tạo các file cần thiết
node bot

Backup các file trong thư mục data để lưu lại và phục hồi dữ liệu khi cần thiết.

  • Tạo link mời BOT vào máy chủ
    • Trong bảng điều khiển, chọn Tab Installation và tích chọn Guild Install image
    • Ở phần Install Link chọn Discord Provided Link và chọn các scope trong phần Default Install Settings như sau image
    • Click nút Copy ở link phía trên và dán vào trình duyệt để mời BOT!
Trường hợp không có trường Installation hoặc Discord Provided Link
  • Trong bảng điều khiển BOT, chọn Tab OAuth2

image

  • Chọn scope

image

  • Chọn BOT permission:

image

  • Copy URL trong trường GENERATED URL và mở trong trình duyệt.

Các lệnh của BOT

Lệnh Chức năng Quyền cần
/set-channel Cài đặt kênh chơi nối từ MANAGE_GUILD
/help Xem thông tin và các lệnh BOT
!start Bắt đầu lượt chơi nối từ
!stop Kết thúc lượt chơi nối từ MANAGE_CHANNEL
/stats Xem thống kê của Bot
/rank Xem BXH nối từ trong máy chủ
/me Xem thống kê nối từ cá nhân
/server Xem thông tin máy chủ
/report <từ> [lí do] Báo cáo từ không phù hợp MANAGE_GUILD

bot-noi-tu's People

Contributors

lvdat avatar

Stargazers

 avatar

Watchers

 avatar

bot-noi-tu's Issues

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.