Help tweak the programme. #1904
Answered
by
fatboychummy
HenryDu8133
asked this question in
Q&A
-
Hi there.Recently I've been working on some CCyoucube code, and now I've written a fast audio playback application called ‘Play.lua’.Here is the code for it
It's based on youcube's code It is now possible to play audio by typing ‘Play’ Now I want it to get the link directly after ‘Play’ and start playing. No need to enter the link again Could you help me to tweak the programme? Thanks ! |
Beta Was this translation helpful? Give feedback.
Answered by
fatboychummy
Jul 19, 2024
Replies: 1 comment 3 replies
-
To get a list of arguments, use local arg1, arg2, arg3 = ...
-- or, in a table
local args = {...} This can be used inside functions as well: local function print_separately(...)
local args = {...}
for i = 1, #args do
print(args[i])
end
end
print_separately("hello", "world") |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or alternatively, just pass
...
directly toshell.run