aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ecosystem.config.js45
-rw-r--r--src/listeners/client/ready.ts2
-rw-r--r--tsconfig.json28
3 files changed, 64 insertions, 11 deletions
diff --git a/ecosystem.config.js b/ecosystem.config.js
index fafb528..6df5585 100644
--- a/ecosystem.config.js
+++ b/ecosystem.config.js
@@ -1,16 +1,51 @@
module.exports = {
apps: [
{
+ name: 'BushBot',
+ script: 'yarn',
+ args: 'start',
+ out_file: '../bushbot.log',
+ error_file: '../bushbot.log',
+ max_memory_restart: '1G',
+ node_args: ['--max_old_space_size=2048'],
+ env: {
+ FORCE_COLOR: '3'
+ },
+ exp_backoff_restart_delay: 2500,
+ wait_ready: true
+ },
+ {
name: 'BushBot-Beta',
script: 'yarn',
args: 'start',
- out_file: './combined-dev.log',
- error_file: './combined-dev.log',
- max_memory_restart: '2000M',
+ out_file: '../bushbot-beta.log',
+ error_file: '../bushbot-beta.log',
+ max_memory_restart: '1G',
node_args: ['--max_old_space_size=2048'],
env: {
FORCE_COLOR: '3'
- }
+ },
+ exp_backoff_restart_delay: 2500,
+ wait_ready: true
+ }
+ ],
+
+ deploy: {
+ production: {
+ 'user': 'pi',
+ 'host': '192.168.1.240',
+ 'ref': 'origin/master',
+ 'repo': 'git@github.com:NotEnoughUpdate/repository.git',
+ 'path': '/code/bush-bot',
+ 'post-deploy': 'yarn install'
+ },
+ beta: {
+ 'user': 'pi',
+ 'host': '192.168.1.240',
+ 'ref': 'origin/beta',
+ 'repo': 'git@github.com:Username/repository.git',
+ 'path': '/code/bush-bot-beta',
+ 'post-deploy': 'yarn install'
}
- ]
+ }
};
diff --git a/src/listeners/client/ready.ts b/src/listeners/client/ready.ts
index 386d132..6f98ceb 100644
--- a/src/listeners/client/ready.ts
+++ b/src/listeners/client/ready.ts
@@ -11,6 +11,8 @@ export default class ReadyListener extends BushListener {
}
public override async exec(): Promise<void> {
+ process.emit('ready' as any);
+
const tag = `<<${client.user?.tag}>>`,
guildCount = `<<${client.guilds.cache.size.toLocaleString()}>>`,
userCount = `<<${client.users.cache.size.toLocaleString()}>>`;
diff --git a/tsconfig.json b/tsconfig.json
index 34ef008..0cc1391 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -3,7 +3,14 @@
"module": "commonjs",
"target": "esnext",
"outDir": "dist",
- "lib": ["esnext", "esnext.array", "esnext.asyncIterable", "esnext.intl", "esnext.symbol", "DOM"],
+ "lib": [
+ "esnext",
+ "esnext.array",
+ "esnext.asyncIterable",
+ "esnext.intl",
+ "esnext.symbol",
+ "DOM"
+ ],
"sourceMap": false,
"inlineSourceMap": true,
"inlineSources": true,
@@ -19,11 +26,20 @@
"baseUrl": "./",
"useUnknownInCatchVariables": false,
"paths": {
- "src/*": ["./src/*"],
- "@lib": ["./src/lib"],
- "@root": ["."]
+ "src/*": [
+ "./src/*"
+ ],
+ "@lib": [
+ "./src/lib"
+ ],
+ "@root": [
+ "."
+ ]
}
},
- "include": ["src/**/*.ts"],
+ "include": [
+ "src/**/*.ts",
+ "ecosystem.config.js"
+ ],
"exclude": []
-}
+} \ No newline at end of file