mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 18:44:17 +00:00
create basic server
This commit is contained in:
parent
4a795c1f92
commit
fd5ea2d508
@ -1,13 +1,13 @@
|
|||||||
const cloudlink = require('@ragestudio/cloudlink')
|
|
||||||
|
|
||||||
const commands = [
|
const commands = [
|
||||||
{
|
{
|
||||||
command: "clserver",
|
command: "clserver",
|
||||||
description: "Start an cloudlink server",
|
description: "Start an cloudlink server",
|
||||||
exec: (context, args) => {
|
exec: (context, args) => {
|
||||||
console.log("Starting Cloudlink™ Server")
|
const cloudlink = require('@ragestudio/cloudlink')
|
||||||
|
|
||||||
console.log(cloudlink)
|
console.log(`Starting Cloudlink™ Server \n`)
|
||||||
|
const server = new cloudlink.Server({...args})
|
||||||
|
server.init()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
pkg: "cloudlink",
|
pkg: "cloudlink",
|
||||||
script: "./addon.js",
|
script: "./addon.js",
|
||||||
|
hasDependencies: true,
|
||||||
dependencies: {
|
dependencies: {
|
||||||
"@ragestudio/cloudlink": "0.5.2"
|
"@ragestudio/cloudlink": "0.5.2"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user