상속: HasVictim
예제 #1
0
 public override void Visit(Ban ban)
 {
     var obj = ban.Duration == TimeSpan.Zero ? new BanSender(ban.Victim, ban.Ip, true, ban.Reason) : new BanSender(ban.Victim, ban.Ip, ban.Duration, ban.Reason);
       _websocket.Send($"BAN {JsonConvert.SerializeObject(obj)}");
 }
예제 #2
0
 public void Visit(Ban ban)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public override void Visit(Ban ban)
 {
     var message = ban.Perm ? $".ban {ban.Victim}" : $".timeout {ban.Victim} {ban.Duration.TotalSeconds}";
       SendMsg(message);
 }
예제 #4
0
파일: TestClient.cs 프로젝트: destinygg/bot
 public void Visit(Ban ban) {
   Print(ban);
 }
예제 #5
0
 public void Process(Ban ban)
 {
 }
예제 #6
0
 public void Process(Ban ban)
 {
     _sender.Invoke($"<{ban.Sender.OriginalNick}> <=== just banned {ban.Victim}");
 }
예제 #7
0
 public virtual void Visit(Ban ban)
 {
     Print(ban);
 }