コード例 #1
0
 public static int EventFun(
     string receiverQq,
     int eventType,
     int eventAdditionType,
     string fromNum,
     string eventOperator,
     string triggee,
     string message,
     string rawMessage)
 {
     PluginInstanceManager.GetInstance().HandleMahuaOutput(new EventFun
     {
         ReceiverQq        = receiverQq,
         EventAdditionType = eventAdditionType,
         EventOperator     = eventOperator,
         EventType         = eventType,
         FromNum           = fromNum,
         Message           = message,
         RawMessage        = rawMessage,
         Triggee           = triggee,
     });
     // TODO 对于特定的请求,需要处理返回值。例如入群邀请。
     return(0);
 }
コード例 #2
0
 public static void About()
 {
     PluginInstanceManager.GetInstance().SendCommand(new AboutCommand());
 }
コード例 #3
0
 public static void Set()
 {
     PluginInstanceManager.GetInstance().SendCommand(new ConfigurationManagerCommand());
 }
コード例 #4
0
 public static int End()
 {
     PluginInstanceManager.GetInstance().HandleMahuaOutput(new End());
     // TODO 对于特定的请求,需要处理返回值。
     return(0);
 }
コード例 #5
0
 public static void About()
 {
     PluginInstanceManager.GetInstance().HandleMahuaOutput(new About());
 }