- /**
- * Creates a new bot.
- *
- * @param network
- * The network the bot is on
- */
- public Bot(Network network) {
- this.network = network;
+ public Bot(Network network, String channel, String name) {
+ this.network = checkNotNull(network, "network must not be null");
+ this.channel = checkNotNull(channel, "channel must not be null");
+ this.name = checkNotNull(name, "name must not be null");