🎉 init
This commit is contained in:
+1
-4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { DiscordServer } from "./Server";
|
||||
|
||||
const server = new DiscordServer();
|
||||
const server = new DiscordServer({ port: 3000 });
|
||||
server.start().catch(console.error);
|
||||
|
||||
@@ -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();
|
||||
Reference in New Issue
Block a user