Skip to content
Merged
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
20 changes: 20 additions & 0 deletions src/dev/_dev.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-- {"id": 23119210, "ver": "0.0.0", "libVer": "1.0.0", "author": "wasu-code"}

-- Source URL of the external Lua file you're working on to load dynamically
-- ! **Change accordingly**
local URL = "http://192.168.1.23:5500/src/dev/extension-template.lua"

-- NOTE: This development extension uses the same ID as the target script.
-- This means downloaded chapters will be saved in the same directory
-- as the original plugin's chapters.

-- Fetch and load the remote script as a Lua chunk
local extensionScript = GETDocument(URL):wholeText()
local extension = load(extensionScript, "devExt")()

-- Override some fields (optional) so that they appear differently
local originalName = extension.name
extension.name = "!dev: " .. originalName

-- Return extension's (modified) table
return extension
Loading