Beispiel #1
0
 internal static async ValueTask GroupPokeEventParse(object sender, GroupPokeEventArgs groupPokeEventArgs)
 {
     if (groupPokeEventArgs.TargetUser == groupPokeEventArgs.LoginUid &&
         !CheckInCD.isInCD(groupPokeEventArgs.SourceGroup, groupPokeEventArgs.SendUser))
     {
         await groupPokeEventArgs.SourceGroup.SendGroupMessage(CQCode.CQAt(groupPokeEventArgs.SendUser),
                                                               "\r\n你今晚必被爽哥杀害\r\n",
                                                               CQCode.CQImage("https://i.loli.net/2020/10/20/zWPyocxFEVp2tDT.jpg"));
     }
 }
Beispiel #2
0
 public async ValueTask GroupPokeEventParse(object sender, GroupPokeEventArgs eventArgs)
 {
     if (eventArgs.TargetUser == eventArgs.LoginUid &&
         !CheckInCD.IsInCD(eventArgs.SourceGroup, eventArgs.SendUser))
     {
         await eventArgs
         .SourceGroup
         .SendGroupMessage(
             CQCode.CQAt(eventArgs.SendUser),
             "\r\n再戳锤爆你的头\r\n",
             CQCode.CQImage("https://i.loli.net/2020/10/20/zWPyocxFEVp2tDT.jpg"));
     }
 }