part of irc.bot;

class DumbBot extends Bot {
  Client _client;
  List<String> channels = [];

  DumbBot(BotConfig config) {
    _client = new Client(config);
    _registerHandlers();
  }

  void _registerHandlers() {
    whenReady((ReadyEvent event) => channels.forEach((chan) => event.join(chan)));

    onMessage((MessageEvent event) => print("<${event.target}><${event.from}> ${event.message}"));
  }

  @override
  Client client() => _client;
}

part of irc.bot;

class DumbBot extends Bot {
  Client _client;
  List<String> channels = [];

  DumbBot(BotConfig config) {
    _client = new Client(config);
    _registerHandlers();
  }

  void _registerHandlers() {
    register((ReadyEvent event) => channels.forEach((chan) => event.join(chan)));

    register((MessageEvent event) => print("<${event.target}><${event.from}> ${event.message}"));
  }

  @override
  Client client() => _client;
}

Fix Dumb Bot for the new Event System (it was left out)
Fix Dumb Bot for the new Event System (it was left out)
