public Bot(MessageDispatcher messageDispatcher) : base(DefaultBotTick) { if (messageDispatcher == null) throw new ArgumentNullException("messageDispatcher"); Dispatcher = messageDispatcher; ConnectionType = ClientConnectionType.Disconnected; ClientInformations = new ClientInformations(); ChatManager = new Managers.ChatManager(this); }
public Bot(MessageDispatcher messageDispatcher) : base(30) { if (messageDispatcher == null) throw new ArgumentNullException("messageDispatcher"); Dispatcher = messageDispatcher; ConnectionType = ClientConnectionType.Disconnected; ClientInformations = new ClientInformations(); ChatManager = new Managers.ChatManager(this); messageDispatcher.Enqueue(new BotCreatedMessage(), this); }