mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +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 (!turn.size) {
|
||||||
if (lastTurnTimeout) {
|
if (lastTurnTimeout) {
|
||||||
await msg.say('Game ended due to inactivity.');
|
|
||||||
winner = 'time';
|
winner = 'time';
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
@@ -112,7 +111,6 @@ module.exports = class NimCommand extends Command {
|
|||||||
});
|
});
|
||||||
if (!rowTurn.size) {
|
if (!rowTurn.size) {
|
||||||
if (lastTurnTimeout) {
|
if (lastTurnTimeout) {
|
||||||
await msg.say('Game ended due to inactivity.');
|
|
||||||
winner = 'time';
|
winner = 'time';
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user