]> git.localhorst.tv Git - alttp.git/commitdiff
use irc nick as pink token
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 21 Jan 2024 15:44:56 +0000 (16:44 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 21 Jan 2024 15:44:56 +0000 (16:44 +0100)
app/TwitchBot/TwitchBot.php

index bb3724d6844bbf7f0990f5306fb3f04069f834a3..e5a5aa6e442307b06bbae8b68635a07f4255b463 100644 (file)
@@ -156,7 +156,7 @@ class TwitchBot {
                        if (!$this->ready) return;
                        if (time() - $this->last_contact < 60) return;
                        try {
-                               $this->sendIRCMessage(IRCMessage::ping());
+                               $this->sendIRCMessage(IRCMessage::ping($this->nick));
                        } catch (\Exception $e) {
                        }
                });