]> git.localhorst.tv Git - alttp.git/blobdiff - app/Http/Controllers/ResultController.php
dispatch discord command on result report
[alttp.git] / app / Http / Controllers / ResultController.php
index ab1759d6faaf1bf97fb9c0d5d2c51014a8935d3a..8698e19838aef615ee45b3ec5f4579ba58bb88d1 100644 (file)
@@ -3,6 +3,7 @@
 namespace App\Http\Controllers;
 
 use App\Events\ResultChanged;
+use App\Models\DiscordBotCommand;
 use App\Models\Participant;
 use App\Models\Protocol;
 use App\Models\Result;
@@ -50,6 +51,7 @@ class ResultController extends Controller
                                $result,
                                $request->user(),
                        );
+                       DiscordBotCommand::queueResult($result);
                } else if ($result->wasChanged('comment')) {
                        Protocol::resultCommented(
                                $round->tournament,