Skip to content

Commit

Permalink
dankdebug add predefined random steam games query
Browse files Browse the repository at this point in the history
  • Loading branch information
Supinic committed Nov 8, 2024
1 parent 14d340b commit 4d734f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions commands/dankdebug/create-sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
3 changes: 2 additions & 1 deletion commands/dankdebug/sandbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 4d734f5

Please sign in to comment.