/// <summary> /// 消息接收函数 /// </summary> public void GetChat(WholeMatchCmdType cmdType) { if (MFKEventArgs == null || Sender == null || CheckInCD.isInCD(MFKEventArgs)) { return; } this.QQGroup = MFKEventArgs.FromGroup; switch (cmdType) { //生成随机数 case WholeMatchCmdType.SurpriseMFK_Random: RandomNumber(); break; //随机禁言套餐 case WholeMatchCmdType.SurpriseMFK_Ban: RandomBan(); break; //昏睡套餐 case WholeMatchCmdType.SurpriseMFK_RedTea: RedTea(); break; //恶臭问答 //这个是不是多余了( case WholeMatchCmdType.SurpriseMFK_24YearsOld: QQGroup.SendGroupMessage("24岁,是学生"); break; } }
/// <summary> /// 在收到消息后获取数据库数据并判断是否需要修改数据库 /// 指令分发 /// </summary> public void GetChat(WholeMatchCmdType cmdType) { switch (cmdType) { case WholeMatchCmdType.Suisei_SignIn: SignIn(); break; default: break; } }
/// <summary> /// 消息接收函数 /// 并匹配相应指令 /// </summary> /// <param name="keywordType"></param> public void GetChat(WholeMatchCmdType keywordType) //消息接收并判断是否响应 { if (DebugEventArgs == null || Sender == null) { return; } switch (keywordType) { case WholeMatchCmdType.Debug: Test(); break; } }
/// <summary> /// 用于处理传入指令 /// </summary> /// <param name="cmdType">指令类型</param> public async void GetChat(WholeMatchCmdType cmdType) { Config config = new Config(HsoEventArgs.CQApi.GetLoginQQ().Id); switch (cmdType) { case WholeMatchCmdType.Hso: Hso hso = config.LoadedConfig.HsoConfig; await GiveMeSetu(hso.Source, hso.LoliconToken, hso.YukariToken); break; default: break; } }