]> git.localhorst.tv Git - alttp.git/blobdiff - app/TwitchBot/IRCMessage.php
basic twitch join/part commands
[alttp.git] / app / TwitchBot / IRCMessage.php
index 00217dc044660b1a5b70c471a8f20497e611fad1..c730ef7d0bfa962126417f7b513e7adc46984b9b 100644 (file)
@@ -132,6 +132,13 @@ class IRCMessage {
                return $msg;
        }
 
+       public static function part($channels) {
+               $msg = new IRCMessage();
+               $msg->command = 'PART';
+               $msg->params[] = implode(',', $channels);
+               return $msg;
+       }
+
        public static function privmsg($target, $message) {
                $msg = new IRCMessage();
                $msg->command = 'PRIVMSG';