The following changes were made by the replace_file_content tool to: /root/aadharbot/index.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -976,7 +976,7 @@ if (db[userId] !== undefined) { return db[userId].credits; } else { - const defaultCredits = 120; // default for new users is 120 (1 free search) + const defaultCredits = 1; // default for new users is 1 (1 free search) db[userId] = { name, credits: defaultCredits }; fs.writeFileSync('db.json', JSON.stringify(db, null, 2)); return defaultCredits; @@ -987,7 +987,7 @@ if (res.rows.length > 0) { return res.rows[0].credits; } else { - const defaultCredits = 120; // default for new users is 120 (1 free search) + const defaultCredits = 1; // default for new users is 1 (1 free search) await pool.query( 'INSERT INTO users (telegram_id, name, credits, created_at, updated_at) VALUES ($1, $2, $3, NOW(), NOW()) ON CONFLICT (telegram_id) DO NOTHING', [userId, name, defaultCredits] [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.