Compare commits

...

2 Commits

Author SHA1 Message Date
ThePendulum fd2bd1b8f5 1.5.17 2021-11-16 19:11:14 +01:00
ThePendulum f455635e0a Added kill command and PM2 ecosystem file with restart delay. 2021-11-16 19:10:58 +01:00
4 changed files with 12 additions and 3 deletions

4
ecosystem.config.js Normal file
View File

@ -0,0 +1,4 @@
module.exports = {
script: 'src/app.js',
restart_delay: 5000,
};

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "schat2-clive",
"version": "1.5.16",
"version": "1.5.17",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "schat2-clive",
"version": "1.5.16",
"version": "1.5.17",
"license": "ISC",
"dependencies": {
"bhttp": "^1.2.8",

View File

@ -1,6 +1,6 @@
{
"name": "schat2-clive",
"version": "1.5.16",
"version": "1.5.17",
"description": "Game host for SChat 2-powered chat sites",
"main": "src/app.js",
"scripts": {

View File

@ -145,6 +145,11 @@ 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];