mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 00:06:42 +02:00
Only send one inactivity message in nim
This commit is contained in:
@@ -76,7 +76,6 @@ module.exports = class NimCommand extends Command {
|
||||
});
|
||||
if (!turn.size) {
|
||||
if (lastTurnTimeout) {
|
||||
await msg.say('Game ended due to inactivity.');
|
||||
winner = 'time';
|
||||
break;
|
||||
} else {
|
||||
@@ -112,7 +111,6 @@ module.exports = class NimCommand extends Command {
|
||||
});
|
||||
if (!rowTurn.size) {
|
||||
if (lastTurnTimeout) {
|
||||
await msg.say('Game ended due to inactivity.');
|
||||
winner = 'time';
|
||||
break;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user