Giter Club home page Giter Club logo

wxrobot's Introduction

wxRobot

可爱猫4.0消息处理端

在plugin包下新建你的插件
在application.yml中注册你的插件

在使用前需要在bot中配置可爱猫的服务器地址
目前bot的API支持

sendPrivateMessage()    // 发送私聊消息
sendGroupMessage()      // 发送群聊消息
sendImageMessage()      // 发送图片消息 可为网络图片
sendVideoMessage()      // 发送视频消息
sendFileMessage()       // 发送文件
sendEmojiMessage()      // 发送表情图
sendLinkMessage()       // 分享链接 中文的编码目前存在问题
sendMusicMessage()      // 点歌
getBotName()            // 获取机器人昵称
getBotHeadPic()         // 获取机器人头像
getBotList()            // 获取机器框架登录的账号列表
getFriendList()         // 获取好友列表
getGroupList()          // 获取群聊列表
getGroupMemberList()    // 获取群聊成员列表
getGroupMember()        // 获取群成员信息
modifyFriendNote()      // 修改好友备注
deleteFriend()          // 删除好友
removeGroupMember()     // 移出群成员
modifyGroupName()       // 修改群名称
modifyGroupNotice()     // 修改群公告
quitGroup()             // 退出群聊
inviteInGroup()         // 邀请入群
agreeFriendVerify()     // 同意加好友请求

目前支持的消息事件有

onPrivateMessage()          //私聊事件
onGroupMessage()            //群聊事件
onFriendAddEvent()          //好友申请事件
onGroupIncreaseNotice()     //群成员增加
onGroupDecreaseNotice()     //群成员减少

插件的开发需要继承 BotPlugin

@Component
public class TestPlugin extends BotPlugin {
    // 根据需要去实现 BotPlugin 的事件 目前就只有两种事件
}

wxrobot's People

Contributors

bystart avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.