From c1f3767292dbd2422ddfd62a8b914072b6cfac8e Mon Sep 17 00:00:00 2001 From: Oliver Boehlk Date: Mon, 11 May 2020 16:31:29 +0200 Subject: [PATCH] bugfix update varname and messages --- largefetch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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());