diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-08 16:29:36 +0100 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-08 16:29:36 +0100 |
commit | 800163a913f7bba533dddc4b3ee28909578987ce (patch) | |
tree | 71f8e26597936c6472b73f013c8b956cf9e9363a | |
parent | :arrow_up: bump lambert-db (diff) | |
download | server-800163a913f7bba533dddc4b3ee28909578987ce.tar.xz |
:sparkles: Event Model
-rw-r--r-- | .vscode/launch.json | 17 | ||||
-rw-r--r-- | dist/models/Event.d.ts | 7 | ||||
-rw-r--r-- | dist/models/Event.js | 4 | ||||
-rw-r--r-- | dist/models/Event.js.map | 1 | ||||
-rw-r--r-- | dist/util/Config.js | 2 | ||||
-rw-r--r-- | dist/util/Config.js.map | 2 | ||||
-rw-r--r-- | src/models/Event.ts | 9 |
7 files changed, 40 insertions, 2 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..07fd32ac --- /dev/null +++ b/.vscode/launch.json @@ -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"] + } + ] +} diff --git a/dist/models/Event.d.ts b/dist/models/Event.d.ts new file mode 100644 index 00000000..969baef8 --- /dev/null +++ b/dist/models/Event.d.ts @@ -0,0 +1,7 @@ +export interface Event { + guild_id?: bigint; + user_id?: bigint; + created_at: number; + data: any; + event: string; +} diff --git a/dist/models/Event.js b/dist/models/Event.js new file mode 100644 index 00000000..5a8077b3 --- /dev/null +++ b/dist/models/Event.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// located in collection events +//# sourceMappingURL=Event.js.map \ No newline at end of file diff --git a/dist/models/Event.js.map b/dist/models/Event.js.map new file mode 100644 index 00000000..0253f5dc --- /dev/null +++ b/dist/models/Event.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../src/models/Event.ts"],"names":[],"mappings":";;AAQA,+BAA+B"} \ No newline at end of file diff --git a/dist/util/Config.js b/dist/util/Config.js index 948f09d6..5c41d39a 100644 --- a/dist/util/Config.js +++ b/dist/util/Config.js @@ -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 || {})); }, diff --git a/dist/util/Config.js.map b/dist/util/Config.js.map index af36df3c..1cd7a96b 100644 --- a/dist/util/Config.js.map +++ b/dist/util/Config.js.map @@ -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,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;QACpC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,MAAM,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC;IAClD,CAAC;IACD,MAAM,EAAE,SAAS,GAAG;QACnB,OAAuB,MAAM,CAAC,GAAG,EAAE,CAAC;IACrC,CAAC;IACD,MAAM,EAAE,SAAS,GAAG,CAAC,GAAQ;QAC5B,OAAO,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACxB,CAAC;CACD,CAAC;AAQW,QAAA,cAAc,GAAmB;IAC7C,GAAG,EAAE,EAAE;IACP,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,EAAE;CACT,CAAC"} \ No newline at end of file +{"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,MAAM,kBAAE,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;QAC1C,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,MAAM,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC;IAClD,CAAC;IACD,MAAM,EAAE,SAAS,GAAG;QACnB,OAAuB,MAAM,CAAC,GAAG,EAAE,CAAC;IACrC,CAAC;IACD,MAAM,EAAE,SAAS,GAAG,CAAC,GAAQ;QAC5B,OAAO,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACxB,CAAC;CACD,CAAC;AAQW,QAAA,cAAc,GAAmB;IAC7C,GAAG,EAAE,EAAE;IACP,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,EAAE;CACT,CAAC"} \ No newline at end of file diff --git a/src/models/Event.ts b/src/models/Event.ts new file mode 100644 index 00000000..4197ed04 --- /dev/null +++ b/src/models/Event.ts @@ -0,0 +1,9 @@ +export interface Event { + guild_id?: bigint; + user_id?: bigint; + created_at: number; + data: any; + event: string; +} + +// located in collection events |