1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 02:12:40 +01:00

Event Model

This commit is contained in:
Flam3rboy 2021-02-08 16:29:36 +01:00
parent 451d2c3611
commit 800163a913
7 changed files with 40 additions and 2 deletions

17
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"sourceMaps": true,
"type": "node",
"request": "launch",
"name": "Launch Server",
"program": "${workspaceFolder}/dist/index.js",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
}
]
}

7
dist/models/Event.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
export interface Event {
guild_id?: bigint;
user_id?: bigint;
created_at: number;
data: any;
event: string;
}

4
dist/models/Event.js vendored Normal file
View File

@ -0,0 +1,4 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// located in collection events
//# sourceMappingURL=Event.js.map

1
dist/models/Event.js.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../src/models/Event.ts"],"names":[],"mappings":";;AAQA,+BAA+B"}

2
dist/util/Config.js vendored
View File

@ -9,7 +9,7 @@ const Database_1 = __importDefault(require("./Database"));
var Config;
exports.default = {
init: async function init(opts = exports.DefaultOptions) {
Config = Database_1.default.data.config({}).cache();
Config = await Database_1.default.data.config({}).cache();
await Config.init();
await Config.set(opts.merge(Config.cache || {}));
},

View File

@ -1 +1 @@
{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../src/util/Config.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAqC;AACrC,0DAA4B;AAE5B,IAAI,MAAqB,CAAC;AAE1B,kBAAe;IACd,IAAI,EAAE,KAAK,UAAU,IAAI,CAAC,OAAuB,sBAAc;QAC9D,MAAM,GAAG,kBAAE,CAAC,IAAI,CAAC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AAE;IACP,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,EAAE;CACT,CAAC"}

9
src/models/Event.ts Normal file
View File

@ -0,0 +1,9 @@
export interface Event {
guild_id?: bigint;
user_id?: bigint;
created_at: number;
data: any;
event: string;
}
// located in collection events