Skip to content

Hknight-official/bot-discordjs-vn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quality Gate Status Maintainability Rating Reliability Rating Security Rating Lines of Code

Yêu cầu

Install NodeJS

Install ffmpeg:

Đối với Windows

Tải về tại đây, giải nén ffmpeg.exe vào thư mục C:\Windows hoặc bất kỳ thư mục nào khác rồi thêm vào PATH

Đối với Debian

$ sudo apt install ffmpeg -y

Đối với RedHat

$ sudo rpm --import https://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro

CentOS 6: 
$ sudo rpm -Uvh https://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm

CentOS 7: 
$ sudo rpm -Uvh https://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
    
$ sudo yum install ffmpeg ffmpeg-devel -y

Đối với Mac

$ brew install ffmpeg

First Start

npm i

Config

  • Vào đường dẫn: config/config.json điền vào các mục sau:
{
  "prefix": "COMMAND> ", // Prefix main
  "prefix_child": [
    "!",
	  "&"
  ], // các Prefix phụ  
  "token": "", // Token bot discord có được sao khi tạo bot trên Settings > Bot > TOKEN
  "id_bot": "715216540412411995", // id của bot lấy được bằng ở mục Settings > Generator Information > CLIENT ID
  "usernameIrc": "", // Tài Khoản Irc Osu! https://old.ppy.sh/p/irc
  "passwordIrc": "", // Mật Khẩu Irc Osu! https://old.ppy.sh/p/irc
  "apiOsuKey": "" // apikey Osu! https://osu.ppy.sh/p/api
}

Chạy Bot

$ npm start

Notes:

  • Code rất ẩu :v

About

Bot Discord chạy Nodejs phiên bản tiếng việt

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published