Moved kill comand to game module, expanded ecosystem file.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user