private void sendPrivateMessage(DouyuData data, string qq) { using (IRobotSession robotSession = MahuaRobotManager.Instance.CreateSession()) { IMahuaApi api = robotSession.MahuaApi; api.SendPrivateMessage(qq, getOnlineMessage(data)); return; } }
private void sendDebugMessage(string msg) //测试用信息 { using (IRobotSession robotSession = MahuaRobotManager.Instance.CreateSession()) { IMahuaApi api = robotSession.MahuaApi; api.SendPrivateMessage("123456789", msg); return; } }