Compare commits
2 Commits
701cf82af8
...
fd2bd1b8f5
Author | SHA1 | Date |
---|---|---|
|
fd2bd1b8f5 | |
|
f455635e0a |
|
@ -0,0 +1,4 @@
|
|||
module.exports = {
|
||||
script: 'src/app.js',
|
||||
restart_delay: 5000,
|
||||
};
|
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue