diff --git a/config/default.js b/config/default.js index 3594a50..f441765 100644 --- a/config/default.js +++ b/config/default.js @@ -21,7 +21,7 @@ module.exports = { color: 'var(--message-56)', }, channels: ['GamesNight'], - games: ['mash', 'trivia', 'duck', 'ping', 'say'], + games: ['mash', 'trivia', 'duck', 'ping', 'say', 'kill'], trivia: { mode: 'first', // first or timeout rounds: 10, diff --git a/ecosystem.config.js b/ecosystem.config.js index 0eb9b92..9d03d51 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -1,4 +1,8 @@ module.exports = { + name: 'main-clive', script: 'src/app.js', restart_delay: 5000, + env: { + NODE_APP_INSTANCE: null, + }, }; diff --git a/src/app.js b/src/app.js index fbc32f7..406508d 100644 --- a/src/app.js +++ b/src/app.js @@ -145,11 +145,6 @@ function onMessage(message, bot, games) { const user = bot.users[message.userId] || message.user; const room = bot.rooms[message.roomId]; - if (command === 'kill') { - process.exit(); - return; - } - if (command) { const args = body.split(/\s+/).slice(1); const game = games[command];