1: <?php
2:
3: namespace Budabot\Core;
4:
5: require_once 'CommandReply.class.php';
6:
7: class PrivateChannelCommandReply implements CommandReply {
8: private $chatBot;
9: private $channel;
10:
11: public function __construct(Budabot $chatBot, $channel) {
12: $this->chatBot = $chatBot;
13: $this->channel = $channel;
14: }
15:
16: public function reply($msg) {
17: $this->chatBot->sendPrivate($msg, false, $this->channel);
18: }
19: }
20: