bugfix update varname and messages

This commit is contained in:
2020-05-11 16:31:29 +02:00
parent bb23fa6bb2
commit c1f3767292

View File

@@ -16,7 +16,7 @@ var connection = mysql.createConnection({
database: 'simcompanies'
});
const tgBot = new TelegramBot(tgInfo.token, { polling: false });
bot.sendMessage(tgInfo.debugChat, 'INF: started polling resource prices.');
tgBot.sendMessage(tgInfo.debugChat, 'INF: dataminer started polling resource prices.');
const exchangeAPI = "https://www.simcompanies.com/api/market/";
const resourceAPI = "https://www.simcompanies.com/api/v3/en/encyclopedia/resources/";
@@ -86,7 +86,7 @@ const storeFullData = async marketData => {
}
});
});
bot.sendMessage(tgInfo.debugChat, 'INF: successfully stored new prices.');
tgBot.sendMessage(tgInfo.debugChat, 'INF: dataminer successfully stored new prices.');
}
storeFullData(getFullData());