pandolia / Js Bot
js-bot: A powerfull chat bot based on coolq-http-api
Stars: ✭ 136
Programming Languages
typescript
32286 projects
Projects that are alternatives of or similar to Js Bot
Chat-Bot
Chatbot – is a computer program that simulates a natural human conversation. Users communicate with a chatbot via the chat interface or by voice, like how they would talk to a real person.
Stars: ✭ 26 (-80.88%)
Mutual labels: chatbot, chat-application, chatbot-framework
Dumbqq
对SmartQQ API的C#封装。(由于作者懒出了一定境界现已停止维护)
Stars: ✭ 60 (-55.88%)
Mutual labels: chatbot, chatbot-framework, qq
Swiftychat
SwiftUI Chat UI (Client) Framework & Documentation to get started!
Stars: ✭ 50 (-63.24%)
Mutual labels: chatbot, chatbot-framework, chat-application
Cog
Bringing the power of the command line to chat
Stars: ✭ 910 (+569.12%)
Mutual labels: chatbot, chatbot-framework
Stealth
An open source Ruby framework for text and voice chatbots. 🤖
Stars: ✭ 481 (+253.68%)
Mutual labels: chatbot, chatbot-framework
Botman
A framework agnostic PHP library to build chat bots
Stars: ✭ 5,538 (+3972.06%)
Mutual labels: chatbot, chatbot-framework
Chatblocks
Declarative Messenger chatbot framework
Stars: ✭ 48 (-64.71%)
Mutual labels: chatbot, chatbot-framework
Opendialog
OpenDialog is a Conversational Experience Platform - the starting point for your own conversational applications.
Stars: ✭ 45 (-66.91%)
Mutual labels: chatbot-framework, chat-application
Botsharp
The Open Source AI Chatbot Platform Builder in 100% C# Running in .NET Core with Machine Learning algorithm.
Stars: ✭ 1,103 (+711.03%)
Mutual labels: chatbot, chatbot-framework
Botpress
🤖 Dev tools to reliably understand text and automate conversations. Built-in NLU. Connect & deploy on any messaging channel (Slack, MS Teams, website, Telegram, etc).
Stars: ✭ 9,486 (+6875%)
Mutual labels: chatbot, chatbot-framework
Fb Botmill
A Java framework for building bots on Facebook's Messenger Platform.
Stars: ✭ 67 (-50.74%)
Mutual labels: chatbot, chatbot-framework
Botfuel Dialog
Botfuel SDK to build highly conversational chatbots
Stars: ✭ 96 (-29.41%)
Mutual labels: chatbot, chatbot-framework
Messenger
Open source, native iOS Messenger, with realtime chat conversations (full offline support).
Stars: ✭ 4,264 (+3035.29%)
Mutual labels: chatbot, chat-application
Poshbot
Powershell-based bot framework
Stars: ✭ 410 (+201.47%)
Mutual labels: chatbot, chatbot-framework
Program O
PHP MySQL AIML Chatbot - One click installation. Fully loaded admin area to admin your chatbot. Set up multiple chatbots. Foreign language support. XML/JSON responses or just plain HTML. Massive community of users. Twitter Plugins and lots and lots more. Please feel free to fork the DEV branch and contribute. :)
Stars: ✭ 712 (+423.53%)
Mutual labels: chatbot, chatbot-framework
Qqbot
QQBot: A conversation robot base on Tencent's SmartQQ
Stars: ✭ 3,643 (+2578.68%)
Mutual labels: chatbot, qq
intelligo-generator
🛠️ Chatbot generator for Intelligo Framework.
Stars: ✭ 31 (-77.21%)
Mutual labels: chatbot, chatbot-framework
botyo
Modular chatbot framework designed for group chat rooms on Facebook
Stars: ✭ 17 (-87.5%)
Mutual labels: chatbot, chatbot-framework
Wechaty
Conversational RPA SDK for Chatbot Makers
Stars: ✭ 11,647 (+8463.97%)
Mutual labels: chatbot, qq
Applozic Ios Sdk
iOS Real Time Chat & Messaging SDK
Stars: ✭ 104 (-23.53%)
Mutual labels: chatbot, chat-application
使用方法
(1) 安装 酷 Q 及 CoolQ HTTP API 插件
运行 酷 Q ,启用 cqhttp 插件,配置 websocket 服务如下:
{
"use_ws": true,
"ws_host": "127.0.0.1",
"ws_port": 6700,
"access_token": "mytoken",
}
(2) 用谷歌或火狐浏览器打开 https://pandolia.net/js-bot 网址,在输入框中输入以下代码注册事件处理的回调函数:
handler.onCqEvent = function (data, api) {
console.log(JSON.stringify(data, null, ' '));
}
事件处理回调函数中的第一个参数 data 是事件数据,支持的事件列表及字段说明详见 cqhttp 事件列表 。
事件处理回调函数中的第二个参数 api 是用来调用 cqhttp-api 的函数,示例如下:
api('send_like', { user_id: 158297369 }).then(() => console.log('ok'));
其他 cqhttp-api 见 cqhttp API 列表 ,调用时需注意下面两个问题:
- 第一个参数为 cqhttp-api 名称,前面不含斜杠 "/"
- 第二个参数为 cqhttp-api 参数,与用户 id 相关的字段全部采用 number 类型(js-bot 内部采用的是 string 类型)
(3) 开发模式
下载本项目源码,运行 yarn install; yarn start ,修改 src/myhandler.ts 文件。
特别致谢
感谢酷 Q 软件和 Richard Chien 开发的 coolq-http-api 。
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].