Skip to content

Commit 83aa7c8

Browse files
committed
Updating bot
1 parent 4b137d6 commit 83aa7c8

26 files changed

+876
-4378
lines changed

package.json

+27-26
Original file line numberDiff line numberDiff line change
@@ -13,48 +13,49 @@
1313
"private": true,
1414
"devDependencies": {
1515
"@secretary/json-file-adapter": "^3.0.1",
16-
"@types/body-parser": "^1.19.0",
17-
"@types/compression": "^1.7.0",
16+
"@types/body-parser": "1.19.2",
17+
"@types/compression": "1.7.2",
1818
"@types/dotenv": "^8.2.0",
19-
"@types/express": "^4.17.6",
20-
"@types/mocha": "^8.2.0",
21-
"@types/morgan": "^1.9.0",
22-
"@types/mysql": "^2.15.10",
23-
"@types/node": "^14.0.1",
24-
"@types/node-emoji": "^1.8.1",
25-
"@types/source-map-support": "^0.5.1",
26-
"mocha": "^8.2.1",
27-
"nodemon": "^2.0.4",
19+
"@types/express": "4.17.14",
20+
"@types/mocha": "10.0.1",
21+
"@types/morgan": "1.9.3",
22+
"@types/mysql": "2.15.21",
23+
"@types/node": "18.11.9",
24+
"@types/node-emoji": "1.8.2",
25+
"@types/nodemon": "1.19.2",
26+
"@types/source-map-support": "0.5.6",
27+
"mocha": "10.1.0",
28+
"nodemon": "2.0.20",
2829
"ts-lint": "^4.5.1",
29-
"ts-node": "^9.1.1",
30-
"typescript": "^4.1.3"
30+
"ts-node": "10.9.1",
31+
"typescript": "4.9.3"
3132
},
3233
"dependencies": {
3334
"@secretary/aws-secrets-manager-adapter": "^3.0.1",
3435
"@secretary/core": "^3.0.1",
35-
"aws-sdk": "^2.812.0",
36-
"axios": "^0.21.0",
37-
"body-parser": "^1.19.0",
36+
"aws-sdk": "2.1264.0",
37+
"axios": "1.2.0",
38+
"body-parser": "1.20.1",
3839
"compression": "^1.7.4",
39-
"dotenv": "^8.2.0",
40-
"eris": "^0.14.0",
40+
"dotenv": "16.0.3",
41+
"eris": "0.17.1",
4142
"eris-command-framework": "^2.5.10",
42-
"express": "^4.17.1",
43-
"flatted": "^3.1.0",
43+
"express": "4.18.2",
44+
"flatted": "3.2.7",
4445
"hookcord": "^2.0.2",
4546
"inversify": "^5.0.1",
46-
"linqts": "1.12.1",
47+
"linqts": "1.14.4",
4748
"millisec": "^0.2.0",
4849
"morgan": "^1.10.0",
4950
"mysql": "^2.18.1",
50-
"node-emoji": "^1.10.0",
51+
"node-emoji": "1.11.0",
5152
"reflect-metadata": "^0.1.13",
5253
"require-context": "^1.1.0",
53-
"source-map-support": "^0.5.19",
54-
"transliteration": "^2.1.9",
55-
"typeorm": "^0.2.24",
54+
"source-map-support": "0.5.21",
55+
"transliteration": "2.3.5",
56+
"typeorm": "0.3.10",
5657
"typescript-collections": "^1.3.3",
57-
"winston": "^3.2.1",
58+
"winston": "3.8.2",
5859
"yes-no": "0.0.1"
5960
},
6061
"plugins": {

src/Kernel.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Adapter} from '@secretary/aws-secrets-manager-adapter';
22
import {Manager} from '@secretary/core';
33
import {Adapter as JsonAdapter} from '@secretary/json-file-adapter';
4-
import {Client, ClientOptions} from 'eris';
4+
import Eris, {Client, ClientOptions} from 'eris';
55
import {
66
AbstractPlugin,
77
CommandContext,
@@ -12,11 +12,12 @@ import {
1212
import * as express from 'express';
1313
import {Express} from 'express';
1414
import {existsSync} from 'fs';
15+
// @ts-ignore
1516
import * as hookcord from 'hookcord';
1617
import {Container} from 'inversify';
1718
import {resolve} from 'path';
1819
import {Connection, createConnection} from 'typeorm';
19-
import {createLogger, format, Logger, transports} from 'winston';
20+
import {createLogger, format, Logger, LoggerOptions, transports} from 'winston';
2021

2122
import Types from './types';
2223
import SecretsManager = require('aws-sdk/clients/secretsmanager');
@@ -42,7 +43,7 @@ export default class Kernel {
4243
transports: [
4344
new transports.Console(),
4445
],
45-
});
46+
} as LoggerOptions);
4647
}
4748

4849
public async run(): Promise<void> {
@@ -142,7 +143,9 @@ export default class Kernel {
142143
// Discord client
143144
const {value: {token}} = await this.secrets.getSecret<{token: string}>('hotline/discord');
144145
this.container.bind<string>(Types.discord.token).toConstantValue(token);
145-
this.container.bind<ClientOptions>(Types.discord.options).toConstantValue({});
146+
this.container.bind<ClientOptions>(Types.discord.options).toConstantValue(
147+
{intents: Eris.Constants.Intents.allNonPrivileged},
148+
);
146149
this.container.bind<Client>(Types.discord.client).toDynamicValue((ctx) => {
147150
return new Client(
148151
ctx.container.get<string>(Types.discord.token),

src/plugin/application-plugin/Entity/Application.ts

-79
This file was deleted.

src/plugin/application-plugin/Entity/Guild.ts

-46
This file was deleted.

src/plugin/application-plugin/Entity/Invite.ts

-53
This file was deleted.

src/plugin/application-plugin/Entity/index.ts

-3
This file was deleted.

0 commit comments

Comments
 (0)