# wxRobot **Repository Path**: by_start/wxRobot ## Basic Information - **Project Name**: wxRobot - **Description**: 可爱猫4.0 雅爱http插件 java sdk - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-10-21 - **Last Updated**: 2023-02-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # wxRobot
可爱猫4.0消息处理端 ---- 在plugin包下新建你的插件
在application.yml中注册你的插件
---- 在使用前需要在bot中配置可爱猫的服务器地址
目前bot的API支持
```java sendPrivateMessage() // 发送私聊消息 sendGroupMessage() // 发送群聊消息 sendImageMessage() // 发送图片消息 可为网络图片 sendVideoMessage() // 发送视频消息 sendFileMessage() // 发送文件 sendEmojiMessage() // 发送表情图 sendLinkMessage() // 分享链接 中文的编码目前存在问题 sendMusicMessage() // 点歌 getBotName() // 获取机器人昵称 getBotHeadPic() // 获取机器人头像 getBotList() // 获取机器框架登录的账号列表 getFriendList() // 获取好友列表 getGroupList() // 获取群聊列表 getGroupMemberList() // 获取群聊成员列表 getGroupMember() // 获取群成员信息 modifyFriendNote() // 修改好友备注 deleteFriend() // 删除好友 removeGroupMember() // 移出群成员 modifyGroupName() // 修改群名称 modifyGroupNotice() // 修改群公告 quitGroup() // 退出群聊 inviteInGroup() // 邀请入群 agreeFriendVerify() // 同意加好友请求 ``` 目前支持的消息事件有 ```java onPrivateMessage() //私聊事件 onGroupMessage() //群聊事件 onFriendAddEvent() //好友申请事件 onGroupIncreaseNotice() //群成员增加 onGroupDecreaseNotice() //群成员减少 ``` ---- 插件的开发需要继承 BotPlugin ```java @Component public class TestPlugin extends BotPlugin { // 根据需要去实现 BotPlugin 的事件 目前就只有两种事件 } ``` 如有问题可加群讨论:645072509 当前在dev分支