Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit 31aa3d4

Browse files
quoc1707Citnutbeanbocchi
authored
[refactor]: new plugins and re-written scripts! (#56)
* add createFileStream [common.getFile] (#45) Citnut pull request * update simsimi api to v2 * Update Simsimi.js * update api simsimi to v2 * fix getToken * Update package.json * Update plugin-request.md * feat: new plugins * feat: merge two install scripts * chore: remove unnecessary curly brackets * docs: modify issue templates Co-authored-by: Nguyễn Thanh Chính <73381800+Citnut@users.noreply.github.com> Co-authored-by: Đậu Văn Đăng Khoa <khoakomlem@gmail.com>
1 parent b631090 commit 31aa3d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+12407
-8737
lines changed

.eslintrc.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,45 @@ about: Create a report to help us improve
44
title: ''
55
labels: bug
66
assignees: ''
7-
87
---
98

10-
**Describe the bug**
9+
## Describe the bug
10+
1111
A clear and concise description of what the bug is.
1212

13-
**To Reproduce**
14-
Steps to reproduce the behavior:
13+
&nbsp;
14+
15+
## Reproduce
16+
17+
Steps to reproduce the bug:
18+
1519
1. Go to '...'
1620
2. Click on '....'
1721
3. Scroll down to '....'
1822
4. See error
1923

20-
**Expected behavior**
24+
&nbsp;
25+
26+
## Expected behavior
27+
2128
A clear and concise description of what you expected to happen.
2229

23-
**Screenshots**
30+
&nbsp;
31+
32+
## Logs
33+
34+
Show your terminal log here to see what happened.
35+
36+
&nbsp;
37+
38+
## Screenshots
39+
2440
If applicable, add screenshots to help explain your problem.
2541

26-
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
42+
&nbsp;
43+
44+
## System information
45+
46+
OS: [e.g. Windows 11 Version Dev (Build 22504.1010)]
47+
Node.js version: [e.g. 16.11.1]
48+
Browser: [e.g. Chrome 96.0.4664.45]

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,26 @@ about: Suggest an idea for this project
44
title: ''
55
labels: feature
66
assignees: ''
7-
87
---
98

10-
**Is your feature request related to a problem? Please describe.**
9+
## Is your feature request related to a problem? Please describe
10+
1111
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
1212

13-
**Describe the solution you'd like**
13+
&nbsp;
14+
15+
## Describe the solution you'd like
16+
1417
A clear and concise description of what you want to happen.
1518

16-
**Describe alternatives you've considered**
19+
&nbsp;
20+
21+
## Describe alternatives you've considered
22+
1723
A clear and concise description of any alternative solutions or features you've considered.
1824

19-
**Additional context**
25+
&nbsp;
26+
27+
## Additional context
28+
2029
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/plugin-request.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ about: Describe the idea about your new plugin
44
title: ''
55
labels: plugin
66
assignees: ''
7-
87
---
98

10-
- Plugin name:
11-
- How's it work:
12-
- Why we should adding it:
13-
14-
Thanks.
9+
- Plugin name:
10+
- How's it work:
11+
- Why we should add it:

.github/workflows/npm-publish.yml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,44 @@
44
name: Node.js Package
55

66
on:
7-
release:
8-
types: [created]
7+
release:
8+
types: [created]
99

1010
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
16-
with:
17-
node-version: 12
18-
- run: npm ci
19-
- run: npm test
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: 14
18+
- run: npm ci
19+
- run: npm test
2020

21-
publish-npm:
22-
needs: build
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v2
26-
- uses: actions/setup-node@v1
27-
with:
28-
node-version: 12
29-
registry-url: https://registry.npmjs.org/
30-
- run: npm ci
31-
- run: npm publish
32-
env:
33-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
21+
publish-npm:
22+
needs: build
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions/setup-node@v1
27+
with:
28+
node-version: 14
29+
registry-url: https://registry.npmjs.org/
30+
- run: npm ci
31+
- run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3434

35-
publish-gpr:
36-
needs: build
37-
runs-on: ubuntu-latest
38-
steps:
39-
- uses: actions/checkout@v2
40-
- uses: actions/setup-node@v1
41-
with:
42-
node-version: 12
43-
registry-url: https://npm.pkg.github.com/
44-
- run: npm ci
45-
- run: npm publish
46-
env:
47-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
35+
publish-gpr:
36+
needs: build
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: actions/setup-node@v1
41+
with:
42+
node-version: 14
43+
registry-url: https://npm.pkg.github.com/
44+
- run: npm ci
45+
- run: npm publish
46+
env:
47+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
bots/*
2-
!bots/README.txt
3-
2+
!bots/README.md
43
logs/*
5-
!logs/README.txt
6-
4+
!logs/README.md
75
main/deploy/datastores/*
8-
!main/deploy/datastores/README.txt
9-
6+
!main/deploy/datastores/README.md
107
main/deploy/games/*
11-
!main/deploy/games/README.txt
12-
13-
main/deploy/plugins/*
14-
!main/deploy/plugins/internal
15-
!main/deploy/plugins/README.txt
16-
8+
!main/deploy/games/README.md
179
main/deploy/updates/*
18-
!main/deploy/updates/README.txt
19-
10+
!main/deploy/updates/README.md
2011
node_modules/
21-
2212
packagehash.txt
23-
24-
test.js
13+
test.js

CLEAN-SETUP.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

README.md

Lines changed: 44 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,48 @@
11
<h1 align="center">
2-
<a href="#"><img src="https://i.imgur.com/nwkPWAT.png" alt="Kb2abot"></a>
2+
<img src="https://i.imgur.com/nwkPWAT.png" alt="Kb2abot" />
33
</h1>
4-
<p align="center">
5-
<img alt="size" src="https://img.shields.io/github/repo-size/kb2abot/kb2abot.svg?style=flat-square&label=size">
6-
<img alt="code-version" src="https://img.shields.io/badge/dynamic/json?color=red&label=code%20version&prefix=v&query=%24.version&url=https://raw.githubusercontent.com/kb2abot/kb2abot/main/package.json&style=flat-square">
7-
<a href="https://github.com/kb2abot/kb2abot/commits"><img alt="commits" src="https://img.shields.io/github/commit-activity/m/kb2abot/kb2abot.svg?label=commit&style=flat-square"></a>
8-
<img alt="downloads" src="https://img.shields.io/github/downloads/kb2ateam/kb2abot/latest/total?style=flat-square"></img>
9-
</p>
10-
11-
# GIỚI THIỆU
4+
<div align="center">
5+
<img alt="size" src="https://img.shields.io/github/repo-size/kb2abot/kb2abot.svg?style=flat-square&label=size" />
6+
<img alt="code-version" src="https://img.shields.io/badge/dynamic/json?color=red&label=code%20version&prefix=v&query=%24.version&url=https://raw.githubusercontent.com/kb2abot/kb2abot/main/package.json&style=flat-square" />
7+
<img alt="commits" src="https://img.shields.io/github/commit-activity/m/kb2abot/kb2abot.svg?label=commit&style=flat-square" />
8+
<img alt="downloads" src="https://img.shields.io/github/downloads/kb2ateam/kb2abot/latest/total?style=flat-square" />
9+
</div>
10+
11+
## GIỚI THIỆU
12+
1213
Đây đơn giản là một con bot tự động trả lời các tin nhắn và có thể sử dụng nhiều lệnh hay khác!
13-
# HƯỚNG DẪN CÀI ĐẶT
14-
Bạn xem kĩ tại trang: https://kb2ateam.github.io/kb2abot-docs/ <br>
15-
Sau khi cài đặt xong, lúc này bot vẫn chưa có nhiều plugin nên các bạn vào trang http://bit.ly/kb2abot tìm tải các plugin mà bạn muốn về folder /main/deploy/plugins nhé!
16-
# CẢM ƠN CÁC BẠN ĐÃ SỬ DỤNG KB2ABOT
17-
Total income (donating): 360,000 vnđ 🔥<br>
14+
15+
&nbsp;
16+
17+
## HƯỚNG DẪN CÀI ĐẶT
18+
19+
Bạn có thể xem hướng dẫn tại [_https://kb2ateam.github.io/kb2abot-docs/_](https://kb2ateam.github.io/kb2abot-docs/).
20+
21+
Sau khi cài đặt xong, lúc này bot vẫn chưa có nhiều plugin nên các bạn vào [_https://drive.google.com/drive/folders/1hmi8F0JIv0MGVAnfcS5XAhhTalYcdTpW?usp=sharing_](https://drive.google.com/drive/folders/1hmi8F0JIv0MGVAnfcS5XAhhTalYcdTpW?usp=sharing) tìm tải các plugin mà bạn muốn về folder _/main/deploy/plugins_ nhé!
22+
23+
&nbsp;
24+
25+
## CÁC FOLDER QUAN TRỌNG
26+
27+
- **/bots**: chứa file cookie được export từ acc bạn muốn chạy bot
28+
- **/logs**: log lại các hoạt động cũng như lỗi trong quá trình chạy
29+
- **/main/deploy/datastores**: lưu trữ data
30+
- **/main/deploy/games**: lưu trữ game
31+
- **/main/deploy/plugins**: lưu trữ plugin (đặt file zip vào bot sẽ tự giải nén). Liên hệ [_facebook.com/khoakomlem_](https://facebook.com/khoakomlem) nếu bạn có plugin muốn share.
32+
- **/main/deploy/updates**: lưu trữ plugin update (sẽ hiện thông báo ở terminal khi khởi động bot)
33+
34+
&nbsp;
35+
36+
## TÌM HIỂU THÊM VỀ KB2A VÀ CÁC SẢN PHẨM KHÁC CỦA NHÓM
37+
38+
- **Website**: [_https://kb2atool.com_](https://kb2atool.com)
39+
- **Facebook**: [_https://www.facebook.com/KB2ATeam_](https://www.facebook.com/KB2ATeam)
40+
- **Youtube**: [_https://www.youtube.com/c/KB2ATeam_](https://www.youtube.com/c/KB2ATeam)
41+
42+
&nbsp;
43+
44+
## CẢM ƠN CÁC BẠN ĐÃ SỬ DỤNG KB2ABOT
45+
46+
Total income (donating): 360,000 vnđ
47+
1848
Cảm ơn mọi người rất nhiều!

[WINDOW] START.bat

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
ỦNG HỘ CHANNEL BỌN MÌNH NHA: https://www.youtube.com/channel/UC_XDuWauZCYEbzkpc8XRFeA
2-
3-
41
1. Chỗ này để đặt các file export được từ tiện ích j2team cookie
52
2. Chỉ cần export cookie từ facebook.com là được rồi!
63
3. Bạn có thể rename theo cách bạn thích!
74

8-
9-
ỦNG HỘ CHANNEL BỌN MÌNH NHA: https://www.youtube.com/channel/UC_XDuWauZCYEbzkpc8XRFeA
5+
ỦNG HỘ CHANNEL BỌN MÌNH NHA: [_https://www.youtube.com/channel/UC_XDuWauZCYEbzkpc8XRFeA_](https://www.youtube.com/channel/UC_XDuWauZCYEbzkpc8XRFeA)

0 commit comments

Comments
 (0)