Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 843 Bytes

robot.md

File metadata and controls

37 lines (29 loc) · 843 Bytes

ColoryrServer

机器人代码编写

返回

默认的机器人代码

using ColoryrServer.SDK;

[RobotIN(new int[] {})] //在这里添加更多订阅的事件
public class test
{
    public bool OnMessage(RobotMessage head)
    {
        return false; //true表示事件已处理完毕
    }
    public bool OnMessagSend(RobotSend head)
    {
        return false;
    }
    //这里是更多事件的回调
    public bool OnRobotEvent(RobotEvent head)
    {
        return false;
    }
}

必须带有ColoryrServer.SDK.DLLIN的属性

  • OnMessage表示收到消息
  • OnMessagSend表示机器人发送消息后
  • OnRobotEvent表示收到其他事件后,需要在类里面添加

返回如果为true,则这个事件不会传到下个Dll中去