diff --git a/largefetch.js b/largefetch.js index 016266f..40c8be7 100644 --- a/largefetch.js +++ b/largefetch.js @@ -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());