Mohammed Foud commited on
Commit
1c7e8ea
·
1 Parent(s): 52048a9
src/bots/botManager.ts CHANGED
@@ -102,7 +102,9 @@ export const initializeBot = async (botToken: string, botData?: BotData) => {
102
 
103
  // Initialize balance update service and ensure it's properly set up
104
  try {
 
105
  // balanceUpdateService.setBot(bot);
 
106
  logger.info('Balance update service initialized successfully');
107
  } catch (error: any) {
108
  logger.error(`Failed to initialize balance update service: ${error.message}`);
 
102
 
103
  // Initialize balance update service and ensure it's properly set up
104
  try {
105
+
106
  // balanceUpdateService.setBot(bot);
107
+
108
  logger.info('Balance update service initialized successfully');
109
  } catch (error: any) {
110
  logger.error(`Failed to initialize balance update service: ${error.message}`);
src/bots/migrations/002_add_api_keys_columns.sql DELETED
@@ -1,14 +0,0 @@
1
- -- Add new columns for API keys and external service configuration
2
- ALTER TABLE public.bots
3
- ADD COLUMN IF NOT EXISTS fivesim_api_key VARCHAR(255),
4
- ADD COLUMN IF NOT EXISTS paypal_client_id VARCHAR(255),
5
- ADD COLUMN IF NOT EXISTS paypal_client_secret VARCHAR(255),
6
- ADD COLUMN IF NOT EXISTS crypto_wallet_address VARCHAR(255),
7
- ADD COLUMN IF NOT EXISTS admin_contact VARCHAR(255);
8
-
9
- -- Add comment for the new columns
10
- COMMENT ON COLUMN public.bots.fivesim_api_key IS 'API key for 5sim.net service';
11
- COMMENT ON COLUMN public.bots.paypal_client_id IS 'PayPal client ID for payment processing';
12
- COMMENT ON COLUMN public.bots.paypal_client_secret IS 'PayPal client secret for payment processing';
13
- COMMENT ON COLUMN public.bots.crypto_wallet_address IS 'Cryptocurrency wallet address for payments';
14
- COMMENT ON COLUMN public.bots.admin_contact IS 'Admin contact information for support';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/bots/migrations/add_group_join_settings.sql DELETED
@@ -1,8 +0,0 @@
1
- -- Add group join settings columns to bots table
2
- ALTER TABLE public.bots
3
- ADD COLUMN IF NOT EXISTS join_group_required BOOLEAN NOT NULL DEFAULT false,
4
- ADD COLUMN IF NOT EXISTS group_channel_username VARCHAR(255);
5
-
6
- -- Add comment to explain the columns
7
- COMMENT ON COLUMN public.bots.join_group_required IS 'Whether users must join a group to use the bot';
8
- COMMENT ON COLUMN public.bots.group_channel_username IS 'The username of the required group/channel (without @ symbol)';