public static int Event_GetNewMsg(int type, string GroupID, string FromQQ, string Msg, string MsgID) { QLAPI.Api_SendLog("收到信息", string.Format("type:{0},GroupID:{1},FromQQ:{2},Msg:{3},MsgID:{4}", type, GroupID, FromQQ, Msg, MsgID), 0, ac); if (Msg.IndexOf("s") > -1) { QLAPI.Api_SendMsg(type, GroupID, FromQQ, "您发送了带有s的字符串", ac); } return(MSG_CONTINUE); // MSG_INTERCEPT 代表拦截消息不传递到下一个插件,插件的优先级可以通过拖拽插件列表来调整 }
public static void SendFriend(long qq, string message) { QLAPI.Api_SendMsg(EventSourceType.Friend.ToInt(), null, qq.ToString(), message, QLMain.ac); }
public static void SendToGroup(long groupNo, string message) { QLAPI.Api_SendMsg(EventSourceType.Group.ToInt(), groupNo.ToString(), null, message, QLMain.ac); }