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());
 }
 public static int End()
 {
     PluginInstanceManager.GetInstance().HandleMahuaOutput(new End());
     // TODO 对于特定的请求,需要处理返回值。
     return(0);
 }
 public static void About()
 {
     PluginInstanceManager.GetInstance().HandleMahuaOutput(new About());
 }