Visit() public method

public Visit ( Ban ban ) : void
ban Dbot.CommonModels.Ban
return void
Esempio n. 1
0
 public async Task SendPrivateMessageTest() {
   InitializeDatastore.Run();
   var client = new WebSocketClient(PrivateConstants.BotWebsocketAuth);
   client.Run(new MessageProcessor(client));
   await Task.Delay(5000);
   client.Visit(new PrivateMessage("dharmatest", "test message"));
 }
Esempio n. 2
0
 public async Task SendPermBanTest() {
   InitializeDatastore.Run();
   var client = new WebSocketClient(PrivateConstants.BotWebsocketAuth);
   client.Run(new MessageProcessor(client));
   await Task.Delay(5000);
   client.Visit(new Ban("dharmatest", TimeSpan.FromMinutes(-1), "perm reason"));
 }