File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ lazy_static! {
2121
2222/// Initialize the Telegram bot with the given token
2323pub 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
5959pub 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 }
You can’t perform that action at this time.
0 commit comments