Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions custom/Global.CreateConVar.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---[SHARED AND MENU] Creates a console variable (ConVar), in general these are for things like gamemode/server settings.
--- Do not use the FCVAR_NEVER_AS_STRING and FCVAR_REPLICATED flags together, as this can cause the console variable to have strange values on the client.
---
---[(View on wiki)](https://wiki.facepunch.com/gmod/Global.CreateConVar)
---@param name string Name of the ConVar.
---
--- This cannot be a name of an engine console command or console variable. It will throw an error if it is. If it is the same name as another lua ConVar, it will return that ConVar object.
---@param value string Default value of the convar. Can also be a number.
---@param flags?|table? number Flags of the convar, see Enums/FCVAR, either as bitflag or as table.
---@param helptext? string The help text to show in the console.
---@param min? number If set, the ConVar cannot be changed to a number lower than this value.
---@param max? number If set, the ConVar cannot be changed to a number higher than this value.
---@return ConVar # The convar created.
function _G.CreateConVar(name, value, flags, helptext, min, max) end
9 changes: 9 additions & 0 deletions custom/Panel.Add.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---[CLIENT AND MENU] Adds the specified object to the panel.
---
---[(View on wiki)](https://wiki.facepunch.com/gmod/Panel:Add)
---@generic T : Panel
---@param object `T` The panel to be added (parented). Can also be:
--- * string Class Name - creates panel with the specified name and adds it to the panel.
--- * table PANEL table - creates a panel from table and adds it to the panel.
---@return `T` # The added or created panel
function Panel:Add(object) end
3 changes: 3 additions & 0 deletions src/cli-scraper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ async function startScrape() {
}
}

// Await any after the loop exits
await Promise.allSettled(queue);

console.log(`Took ${Math.floor((performance.now()-scrape_start) / 100) / 10}s!`);

writer.writeToDisk();
Expand Down