Skip to content

Commit a025cad

Browse files
committed
chore : remote bot token
1 parent 64f856d commit a025cad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async fn main() {
6363
// Initialize Telegram bot
6464
match telegram::init().await {
6565
Ok(_) => println!("Telegram bot initialized successfully"),
66-
Err(e) => println!("Failed to initialize Telegram bot: {}. Continuing without notifications.", e),
66+
Err(e) => println!("{}. Continuing without notifications.", e),
6767
}
6868

6969
// Initialize token account list

src/services/telegram.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ lazy_static! {
2121

2222
/// Initialize the Telegram bot with the given token
2323
pub async fn init() -> Result<()> {
24-
let logger = Logger::new("[TELEGRAM] => ".cyan().bold().to_string());
24+
let logger = Logger::new("[Arbitrage Bot] => ".cyan().bold().to_string());
2525

2626
// Get bot token from environment
2727
let bot_token = env::var("TELEGRAM_BOT_TOKEN").map_err(|_| {
@@ -57,7 +57,7 @@ pub async fn init() -> Result<()> {
5757

5858
/// Send a message to the configured chat
5959
pub async fn send_message(message: &str) -> Result<()> {
60-
let logger = Logger::new("[TELEGRAM] => ".cyan().bold().to_string());
60+
let logger = Logger::new("[Arbitrage Bot] => ".cyan().bold().to_string());
6161

6262
// Get bot and chat ID from global state
6363
let bot_option = TELEGRAM_BOT.lock().unwrap().clone();
@@ -80,7 +80,7 @@ pub async fn send_message(message: &str) -> Result<()> {
8080
}
8181
},
8282
_ => {
83-
logger.log("Telegram bot not initialized".yellow().to_string());
83+
// logger.log("Telegram bot not initialized".yellow().to_string());
8484
Ok(()) // Return Ok to avoid disrupting the main flow
8585
}
8686
}

0 commit comments

Comments
 (0)