X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FTwitchBot%2FIRCMessage.php;h=c730ef7d0bfa962126417f7b513e7adc46984b9b;hb=e10222af705e3475fcea6e0b17d1c9984a62db26;hp=00217dc044660b1a5b70c471a8f20497e611fad1;hpb=5dc7faa01ad96732b0ea126e945f215a9d0490af;p=alttp.git diff --git a/app/TwitchBot/IRCMessage.php b/app/TwitchBot/IRCMessage.php index 00217dc..c730ef7 100644 --- a/app/TwitchBot/IRCMessage.php +++ b/app/TwitchBot/IRCMessage.php @@ -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';