All Projects → kj415j45 → Kjbot

kj415j45 / Kjbot

Licence: mit
kjBot Framework and Modules

Projects that are alternatives of or similar to Kjbot

Python Mirai
以 OICQ(QQ) 协议驱动的高性能机器人开发框架 Mirai 的 Python 接口, 通过其提供的 `HTTP API` 与无头客户端(Mirai)交互.
Stars: ✭ 155 (+384.38%)
Mutual labels:  bot, qqbot
Mojo Webqq
【重要通知:WebQQ将在2019年1月1日停止服务,此项目目前已停止维护,感谢大家四年来的一路陪伴】使用Perl语言(不会没关系)编写的smartqq/webqq客户端框架(非GUI),可通过插件提供基于HTTP协议的api接口供其他语言或系统调用
Stars: ✭ 1,755 (+5384.38%)
Mutual labels:  bot, qqbot
Ichunqiu qqbot
i春秋社区机器人自2018年02月04日开始服务于i春秋社区,每日文章推送、文章查询、魔法币查询、作者信息查询、作家团奖金余额查询、奖金排行榜、i春秋课程查询等一列功能。据不完全统计,使用人数已经超过3.5万,使用次数达到20万,最大覆盖700+个群。
Stars: ✭ 79 (+146.88%)
Mutual labels:  bot, qqbot
Onebot
OneBot 标准:一个聊天机器人应用接口标准
Stars: ✭ 455 (+1321.88%)
Mutual labels:  bot, qqbot
Picqbotx
基于 CQHTTP 插件的 Java QQ 机器人类库
Stars: ✭ 218 (+581.25%)
Mutual labels:  bot, qqbot
Spring Cq
新框架 https://github.com/ProtobufBot/ProtobufBot 。这是一个spring boot starter。基于SpringBoot的QQ机器人框架,demo分支是例子,jar分支是框架。
Stars: ✭ 161 (+403.13%)
Mutual labels:  bot, qqbot
Go Cqhttp
cqhttp的golang实现,轻量、原生跨平台.
Stars: ✭ 3,481 (+10778.13%)
Mutual labels:  bot, qqbot
Miraiandroid
QQ机器人 /(实验性)在Android上运行Mirai-console,支持插件
Stars: ✭ 188 (+487.5%)
Mutual labels:  bot, qqbot
interbotAPI
bot's api
Stars: ✭ 16 (-50%)
Mutual labels:  osu, qqbot
Hoshinobot
A qqbot for Princess Connect Re:Dive (and other usage :)
Stars: ✭ 608 (+1800%)
Mutual labels:  bot, qqbot
Cryptoinscriber
📈 A live cryptocurrency historical trade data blotter. Download live historical trade data from any cryptoexchange, be it for machine learning, backtesting/visualizing trading strategies or for Quantopian/Zipline.
Stars: ✭ 27 (-15.62%)
Mutual labels:  bot
Vhackxtbot Python
Python API for vHackXT Game
Stars: ✭ 27 (-15.62%)
Mutual labels:  bot
Wolfsofcrypto
theWolfsOfCrypto - crypto enthusiasts at your service
Stars: ✭ 30 (-6.25%)
Mutual labels:  bot
Kuro
An easy to use self bot with different utilities written in NodeJS
Stars: ✭ 31 (-3.12%)
Mutual labels:  bot
Multicaptchabot
The best bot for collecting cryptocurrency from freebitco.in, freedoge.co.in and freenem.com 🚀🌔
Stars: ✭ 27 (-15.62%)
Mutual labels:  bot
Rssbot
Lightweight Telegram RSS bot for notifications only. 用于消息通知的轻量级 Telegram RSS 机器人
Stars: ✭ 952 (+2875%)
Mutual labels:  bot
Pixie
An open-source Discord bot built for weebs, by a weeb.
Stars: ✭ 20 (-37.5%)
Mutual labels:  bot
Bootbot
Facebook Messenger Bot Framework for Node.js
Stars: ✭ 886 (+2668.75%)
Mutual labels:  bot
Fbbotw
Python Wrapper for Facebook Messenger Bot Platform.
Stars: ✭ 15 (-53.12%)
Mutual labels:  bot
Spytrojan keylogger
[Solo para programadores] Troyano espía | Keylogger solo para Windows, se replica en el sistema y se inicia automaticamente al iniciar sesión. | Envío de registro mediante [Base de Datos], [Gmail] o [BotTelegram].
Stars: ✭ 32 (+0%)
Mutual labels:  bot

kjBot Maintainability Latest Stable Version Total Downloads License kjBot Dev 群 开始与 kjBot 聊天

kjBot 是一个轻量级多功能的酷Q机器人框架。

警告:本项目面向过程编写。

项目已重构, 点击查看

框架结构

/
|--SDK/ #kjBot\SDK
|--public/
    |--tools/ #各类开放函数的文件
    |--index.php #入口文件
    |--init.php #初始化用
    |......
|--vendor/ #包目录
|--storage/ #请确保运行 PHP 的用户具有这个文件夹的写权限
    |--data/ #数据文件夹
        |--error.log #如果出现异常未捕获则会在此存放日志
        |......
    |--cache/ #缓存文件夹
|--middleWare/ #中间件,用于处理非命令
    |--Chain.php #中间件链,用于调整中间件顺序以及启用状态
    |--......
|--module/ #在这里开始编写你的模块吧 :)
    |--......
|--config.ini.example #配置文件样例,本地部署时请复制为 config.ini 并根据实际情况调整
|--build.sh #进行环境配置
|--run.sh #一键部署(大概 :v

上手

快速安装

如果你安装有 composer

mkdir kjBot/
composer create-project --no-dev kj415j45/kjbot ./kjBot
cd kjBot/
php build.php

如果没有

git clone https://github.com/kj415j45/kjBot.git
cd kjBot/
php build.php

打开 config.ini,根据你的实际情况修改。

如果你需要试用 kjBot 的全部功能,请继续运行 php composer.phar install

仅作为框架使用时,在确保 module 与 middleWare 文件夹下没有你的文件后:composer run-script framework-only

入门

public/init.php 中存在一个全局变量区供编写模块的程序员使用,约定本框架产生的全局变量均为大写字母开头。
public/tools/ 下的文件将为框架扩展各类方法,请仔细阅读。

编写第一个模块

假定该模块为 hello/main.php ,向 bot 发送 !hello 即可触发该模块。

<?php

global $Queue; //从全局变量区中导入 $Queue 数组,该数组提供消息队列的功能

if(!fromGroup()){ //如果消息不是来自群聊
    $Queue[]= sendBack('Hello, world!'); //向消息队列尾插入一句 'Hello, world!',在哪收到就发到哪,此处只会在私聊中发送
}else{
    leave(); //从模块中退出,不再执行下面的语句
}

?>

编写更多模块

参考 module/ 文件夹下的其他模块

参与开发

感谢

LICENSE

kjBot 框架及 SDK 均为 MIT 协议。但是模块与中间件均为 AGPL 协议,如果您希望闭源开发,请不要使用该项目提供的模块和中间件。

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].