Replace SOURCE_VERSION with SOURCE_COMMIT in config

Renamed the SOURCE_VERSION constant to SOURCE_COMMIT in Config.java and updated its usage in Main.java. The environment variable and related references now consistently use SOURCE_COMMIT to better reflect the tracked value.
This commit is contained in:
2025-11-07 21:08:05 +07:00
parent cced06fda9
commit 4c62fde11f
2 changed files with 5 additions and 6 deletions
@@ -1,7 +1,7 @@
package com.miti99.storescraperbot;
import static com.miti99.storescraperbot.config.Config.CREATOR_ID;
import static com.miti99.storescraperbot.config.Config.SOURCE_VERSION;
import static com.miti99.storescraperbot.config.Config.SOURCE_COMMIT;
import com.miti99.storescraperbot.bot.StoreScrapeBot;
import com.miti99.storescraperbot.bot.StoreScrapeBotTelegramClient;
@@ -20,7 +20,7 @@ public class Main {
botsApplication.registerBot(Config.TELEGRAM_BOT_TOKEN, StoreScrapeBot.INSTANCE);
log.info("StoreScrapeBot successfully started!");
StoreScrapeBotTelegramClient.INSTANCE.sendMessage(
CREATOR_ID, "Bot started! Version <code>%s</code>".formatted(SOURCE_VERSION));
CREATOR_ID, "Bot started! Version <code>%s</code>".formatted(SOURCE_COMMIT));
Thread.currentThread().join();
} catch (Exception e) {
log.error("Error while running bot", e);