From 4d734f58a7c3659e78346ce38900f01607dc3fda Mon Sep 17 00:00:00 2001 From: supinic Date: Fri, 8 Nov 2024 17:07:53 +0100 Subject: [PATCH] `dankdebug` add predefined random steam games query --- commands/dankdebug/create-sandbox.js | 6 ++++++ commands/dankdebug/sandbox.d.ts | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/commands/dankdebug/create-sandbox.js b/commands/dankdebug/create-sandbox.js index e2fe910d..5fcd576b 100644 --- a/commands/dankdebug/create-sandbox.js +++ b/commands/dankdebug/create-sandbox.js @@ -137,6 +137,12 @@ const predefinedQueries = { .from("personal", "Clue_Scroll_Tag") .where("Tier NOT IN %s+", ["Beginner", "Master"]) .orderBy("Hint ASC", "ID ASC") + ), + randomSteamGames: () => sb.Query.getRecordset(rs => rs + .select("ID", "Name") + .from("data", "Steam_Game") + .orderBy("RAND()") + .limit(10) ) }; const predefinedRequests = { diff --git a/commands/dankdebug/sandbox.d.ts b/commands/dankdebug/sandbox.d.ts index 3ec61350..ffd4519c 100644 --- a/commands/dankdebug/sandbox.d.ts +++ b/commands/dankdebug/sandbox.d.ts @@ -143,7 +143,8 @@ declare namespace DankDebug { suscheck: string | null | undefined; ownAlias: { invocation: string, arguments: string[] } | null; randomSongRequest: { Name: string, Link: string, Video_Type: number }[]; - osrsClueTag: { ID: number, tier: string; type: string; description: string; hint: string; }[]; + osrsClueTags: { ID: number, tier: string; type: string; description: string; hint: string; }[]; + randomSteamGames: { ID: number, name: string }[]; }; export type PartialCommandResult = {