summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Server.ts5
-rw-r--r--src/index.ts2
-rw-r--r--src/test/db_test.ts9
3 files changed, 11 insertions, 5 deletions
diff --git a/src/Server.ts b/src/Server.ts

index 39b1fa56..631ddeee 100644 --- a/src/Server.ts +++ b/src/Server.ts
@@ -1,6 +1,3 @@ -import express, { Application, Router } from "express"; -import { traverseDirectory } from "./Utils"; -import { Server as HTTPServer } from "http"; import fs from "fs/promises"; import { Server, ServerOptions } from "lambert-server"; @@ -17,7 +14,7 @@ declare global { export class DiscordServer extends Server { public options: DiscordServerOptions; - constructor(opts?: DiscordServerOptions) { + constructor(opts?: Partial<DiscordServerOptions>) { super(opts); } diff --git a/src/index.ts b/src/index.ts
index 2f8aa185..f5000a61 100644 --- a/src/index.ts +++ b/src/index.ts
@@ -1,4 +1,4 @@ import { DiscordServer } from "./Server"; -const server = new DiscordServer(); +const server = new DiscordServer({ port: 3000 }); server.start().catch(console.error); diff --git a/src/test/db_test.ts b/src/test/db_test.ts new file mode 100644
index 00000000..9d4b0072 --- /dev/null +++ b/src/test/db_test.ts
@@ -0,0 +1,9 @@ +import { r } from "rethinkdb-ts"; + +async function main() { + const connection = await r.connect({ port: 28015, host: "192.168.178.122" }); + + r.db("test"); +} + +main();