]> git.localhorst.tv Git - alttp.git/commitdiff
enable xdhunt sync
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 20 Dec 2025 00:40:51 +0000 (01:40 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 20 Dec 2025 00:40:51 +0000 (01:40 +0100)
app/Console/Commands/SyncXDHunt.php
routes/console.php

index 6002b0325ba58a19d028a3bf100dc0b0ad6e2b14..692d2e838d61b95c5b3307306b3a56b6278de37e 100644 (file)
@@ -147,6 +147,10 @@ class SyncXDHunt extends Command {
                                return $user;
                        }
                }
+               $user = User::query()->firstWhere('global_name', 'LIKE', $codename);
+               if ($user) {
+                       return $user;
+               }
                $user = User::query()->firstWhere('discord_nickname', 'LIKE', $codename);
                if ($user) {
                        return $user;
index 94cbd5a51ea8bd8d6a766d5040d0be988aa78ca1..ad20f7caf847de71c85297db8fcc28976532beb7 100644 (file)
@@ -29,6 +29,7 @@ Schedule::everyFiveMinutes()
                Schedule::command('sync:nmg-league');
                Schedule::command('sync:spoiler');
                Schedule::command('sync:alttprfr');
+               Schedule::command('sync:xdhunt');
        });
 
 Schedule::everyFifteenMinutes()