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