kb2a / kb2abot-client Goto Github PK
View Code? Open in Web Editor NEWBot trang cá nhân trả lời tự động
License: MIT License
Bot trang cá nhân trả lời tự động
License: MIT License
thêm chức năng ẩn plugin khỏi help
hide_plugin: "on" //hoặc hide_plugin: "off"
//chức năng ẩn plugin
//on là ẩn còn off là hiện
Hi Khoa, it seems that your Facebook account is not available currently.
How can I contact you?
Trong bootload luôn cập nhật kb2abot-cli lên phiên bản mới nhất để tránh không load được plugin khi có structure mới từ kb2abot-cli
Hiện tại kb2abot nó tự động cài mới package mỗi khi có update khiến cho việc nhưng plugin không phải internal (*) bị mất package và lại phải cài lại lần nữa trong lần boot tiếp theo
*: Là những plugin không có trên repo kb2abot hay nói cách khác là những plugin tự chế.
This is v3 update history
Mess cá nhân nha do mình thấy chỉ có facebook chat cho page
Thanks.
Thêm props:
Thay props:
fn thành các props: onLoad, onMessage, onCall cho plugin
Cụ thể:
onLoad: Được gọi khi plugin được load
onMessage: Được gọi mỗi khi có tin nhắn đến (kể cả xài lệnh)
onCall: Được gọi khi sử dụng lệnh mình
Xóa prop: type
Cơ chế nhắn tin mới sẽ là 1 hàng chờ, hàm mới trong thư viện sắp tới sẽ bỏ vào, base sẽ đẩy ra mỗi 100 milisecond
-> Chuẩn bị cho kb2abot-api
Bị nhảy datastore giữa các group, ko rõ lí do.
Dự định: Sẽ không còn khái niệm về utils nữa, các utils hiện tại sẽ chuyển hết sang helpers
Những thứ sẽ bị code lại:
+bootloader (load interface)
+all plugins
+kb2abot-cli create-plugin
Những thứ sẽ bị loại bỏ:
Mục đích: Sẽ dễ sửa chữa plugin hơn khi tất cả file nó cần nằm gọn trong 1 folder (thay vì 2 folder plugins và utils như bản hiện tại *cũ)
Tại sao ko phải là zip?
-> Chuẩn bị cho kb2abot-api, nếu mà làm zip thì rất khó sửa chữa và maintain code
It would be a great help
and another thing, do you consider adding English ?
Thanks.
Thanks.
---- >
Thanks.
cái api kia bị DDos sập r thay lại
https://api.sfsu.xyz/?text=${encodeURI(message.body)}&format=json&key=kb2abot_sfsu
TRANSLATE:
[[["xin chào","hello",null,null,1]
]
,null,"en",null,null,null,null,[]
]
"Xin chào"
DETECT LANGUAGE
Template: https://api.microsofttranslator.com/V2/Http.svc/Detect?&appid=68D088969D79A8B23AF8585CC83EBA2A05A97651&text=[text]
--> Response with text = xin chao
<string>vi</string>
Thanks.
Is there a command or plugin to send a message to account or group at a specific time ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.