opus/sys/apps/cshell.lua

18 lines
334 B
Lua
Raw Normal View History

2019-02-07 08:10:05 +00:00
local read = _G.read
local shell = _ENV.shell
if not _G.http.websocket then
error('Requires CC: Tweaked')
end
2019-01-23 20:28:43 +00:00
if not _G.cloud_catcher then
2019-03-13 00:04:28 +00:00
print('Visit https://cloud-catcher.squiddev.cc')
2019-01-23 20:28:43 +00:00
print('Paste key: ')
local key = read()
if #key == 0 then
return
end
print('Connecting...')
shell.run('cloud ' .. key)
end