Skip to content

Commit

Permalink
Revert "Fix hostip command"
Browse files Browse the repository at this point in the history
This reverts commit 0fb1c84.
  • Loading branch information
EXL committed Dec 28, 2017
1 parent 0b78f47 commit b7cc51f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DigestBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var TelegramBot = require('node-telegram-bot-api');
var FileSystem = require('fs');
var Http = require('http');
var Request = require('request');
var ExecSync = require('child_process').execSync;
var Exec = require('child_process').exec;

// Globals
var token = getTokenAccess();
Expand Down Expand Up @@ -618,7 +618,7 @@ function generateDigestAnswer(stackSize, messageChatId, dayDelay, aCountOnPage,

function sendHostIpToChat(aMessageChatId, aUserName, aMsgId)
{
ExecSync('curl http://ipecho.net/plain', function(err, stdout, stderr) {
Exec('curl http://ipecho.net/plain', function(err, stdout, stderr) {
if (err) {
sendMessageByBot(aMessageChatId, catchPhrases.debugCommandMessages[14], aUserName, aMsgId);
return;
Expand Down

0 comments on commit b7cc51f

Please sign in to comment.