2019-06-28 17:50:02 +00:00
|
|
|
local Config = require('opus.config')
|
2019-03-22 05:40:29 +00:00
|
|
|
|
2019-02-07 08:10:05 +00:00
|
|
|
local read = _G.read
|
|
|
|
local shell = _ENV.shell
|
|
|
|
|
|
|
|
if not _G.http.websocket then
|
2019-06-18 19:19:24 +00:00
|
|
|
error('Requires CC: Tweaked')
|
2019-02-07 08:10:05 +00:00
|
|
|
end
|
2019-01-23 20:28:43 +00:00
|
|
|
|
|
|
|
if not _G.cloud_catcher then
|
2019-06-18 19:19:24 +00:00
|
|
|
local key = Config.load('cloud').key
|
2019-03-22 05:40:29 +00:00
|
|
|
|
2019-06-18 19:19:24 +00:00
|
|
|
if not key then
|
|
|
|
print('Visit https://cloud-catcher.squiddev.cc')
|
|
|
|
print('Paste key: ')
|
|
|
|
key = read()
|
|
|
|
if #key == 0 then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
end
|
|
|
|
print('Connecting...')
|
|
|
|
shell.run('cloud ' .. key)
|
2019-01-23 20:28:43 +00:00
|
|
|
end
|