Skip to content

Commit

Permalink
Fix hostip command
Browse files Browse the repository at this point in the history
  • Loading branch information
EXL committed Dec 28, 2017
1 parent b7cc51f commit 46902c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CatchPhrases.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"Ошибка: ",
"Игровая статистика:",
"Войди в меня (по SSH)\nМой IP: ",
"Ошибка получения IP-адреса. Администраторы, проверьте результат выполнения команды 'hostname -i'."
"Ошибка получения IP-адреса. Администраторы, проверьте результат выполнения curl-команды.",
"Выхлоп пуст. Попробуйте повторить выполнение команды."
],

"roubleCommandUp" : [
Expand Down
6 changes: 5 additions & 1 deletion DigestBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,11 @@ function sendHostIpToChat(aMessageChatId, aUserName, aMsgId)
sendMessageByBot(aMessageChatId, catchPhrases.debugCommandMessages[14], aUserName, aMsgId);
return;
}
sendMessageByBot(aMessageChatId, catchPhrases.debugCommandMessages[13] + stdout, aUserName, aMsgId);
if (!isEmpty(stdout)) {
sendMessageByBot(aMessageChatId, catchPhrases.debugCommandMessages[13] + stdout, aUserName, aMsgId);
} else {
sendMessageByBot(aMessageChatId, catchPhrases.debugCommandMessages[15], aUserName, aMsgId);
}
});
}

Expand Down

0 comments on commit 46902c5

Please sign in to comment.