]> git.localhorst.tv Git - alttp.git/blobdiff - app/TwitchBot/TwitchAppBot.php
twitch chat bot controls
[alttp.git] / app / TwitchBot / TwitchAppBot.php
index 4e2c7d493ff5050c36fa6d0ed37dcfeb0fb0260b..ce0f75112558563f9cf7f8e7866082e50bc850e9 100644 (file)
@@ -3,7 +3,6 @@
 namespace App\TwitchBot;
 
 use App\Models\Channel;
-use App\Models\TwitchBotCommand;
 
 class TwitchAppBot extends TwitchBot {
 
@@ -52,18 +51,4 @@ class TwitchAppBot extends TwitchBot {
                }
        }
 
-
-       private function listenCommands() {
-               $this->getLoop()->addPeriodicTimer(1, function () {
-                       if (!$this->isReady()) return;
-                       $command = TwitchBotCommand::where('status', '=', 'pending')->oldest()->first();
-                       if ($command) {
-                               try {
-                                       $command->execute($this);
-                               } catch (\Exception $e) {
-                               }
-                       }
-               });
-       }
-
 }