@@ -4,7 +4,7 @@ import { BotReply } from '../../../utils/chat/BotReply';
44import { help , start , commands } from '../../../utils/jsons/botMessages.json' ;
55import { ChatInfo } from '../../../utils/chat/ChatInfo' ;
66import { DateCommand } from '../../service/general/date' ;
7- import { info , user_support } from '../../../../docs/BotInfo.json' ;
7+ import * as BotInfoJson from '../../../../docs/BotInfo.json' ;
88/**
99 * Reason for lowercase command names:
1010 *
@@ -92,10 +92,10 @@ export class GeneralCommands {
9292
9393 // Contact information from BotInfo.json
9494 const contactMessage = `
95- **Help Contact**: ${ user_support . help_contact } \n\r
96- **Support Email**: ${ user_support . support_email }
95+ **Help Contact**: ${ BotInfoJson . user_support . help_contact } \n\r
96+ **Support Email**: ${ BotInfoJson . user_support . support_email }
9797**Support Groups**:
98- ${ user_support . support_groups . map ( ( group ) => `- ${ group . name } : ${ group . link } ` ) . join ( '\n' ) }
98+ ${ BotInfoJson . user_support . support_groups . map ( ( group ) => `- ${ group . name } : ${ group . link } ` ) . join ( '\n' ) }
9999
100100Please reach out to us for assistance.
101101 ` ;
@@ -113,14 +113,14 @@ Please reach out to us for assistance.
113113 // Extract detailed information from BotInfo.json
114114 const botInfoMessage = `
115115 **Bot Information**:
116- - **Name**: ${ info . bot_name }
117- - **Version**: ${ info . bot_version }
118- - **Status**: ${ info . bot_status }
119- - **Creation Date**: ${ new Date ( info . created_at ) . toLocaleString ( ) }
120- - **Last Updated**: ${ new Date ( info . last_update ) . toLocaleString ( ) }
121- - **Supported Languages**: ${ info . supported_languages . join ( ', ' ) }
116+ - **Name**: ${ BotInfoJson . info . bot_name }
117+ - **Version**: ${ BotInfoJson . info . bot_version }
118+ - **Status**: ${ BotInfoJson . info . bot_status }
119+ - **Creation Date**: ${ new Date ( BotInfoJson . info . created_at ) . toLocaleString ( ) }
120+ - **Last Updated**: ${ new Date ( BotInfoJson . info . last_update ) . toLocaleString ( ) }
121+ - **Supported Languages**: ${ BotInfoJson . info . supported_languages . join ( ', ' ) }
122122
123- **Description**: ${ info . description }
123+ **Description**: ${ BotInfoJson . info . description }
124124
125125This bot is designed to deliver fast and secure responses to users.
126126 ` ;
0 commit comments