public static string GetInfo() { var infoCommandResult = PluginInstanceManager.GetInstance() .SendCommand <InfoCommandResult>(new InfoCommand()); return(infoCommandResult.Info); }
public static int EventFun(string receiverQq, int eventType, int eventAdditionType, string fromNum, string eventOperator, string triggee, string message, string rawMessage) { var eventFunCommandResult = PluginInstanceManager.GetInstance().SendCommand <EventFunCommandResult>( new EventFunCommand { ReceiverQq = long.Parse(receiverQq), Message = message, EventAdditionType = eventAdditionType, EventOperator = eventOperator, EventType = eventType, FromNum = long.Parse(fromNum), RawMessage = rawMessage, Triggee = triggee, }); return(eventFunCommandResult.ResultCode); }
public static int End() { PluginInstanceManager.GetInstance().SendCommand(new EndCommand()); return(0); }
public static void About() { PluginInstanceManager.GetInstance().SendCommand(new AboutCommand()); }