Deploy Kord-AI
Choose your preferred deployment method
Make sure to get your session ID from the pair page before deploying.
Deploy on Render
Follow the detailed tutorial on our Telegram channel
View TutorialDeploy on Koyeb
Coming soon! Contact the developer for deployment instructions.
Contact DeveloperDeploy on Panel
1. Create a new file on your panel
• Name the file index.js
2. Paste the following code:
const { execSync } = require('child_process'); const fs = require('fs'); const path = require('path'); const config = { OWNER_NUMBERS: '1234567890', // replace with your number OWNER_NAME: 'Your Name', // replace with your name BOT_NAME: 'Kord AI', // replace with desired bot name SESSION_ID: 'your_session_id', // replace with your session ID INVINCIBLE_MODE: true, // true/false AUTO_READ_STATUS: true, // true/false AUTO_LIKE_STATUS: true, // true/false AUTO_LIKE_EMOJI: '❤️', // replace with desired emoji WORK_MODE: 'public', // 'public' or 'private' ANTI_DELETE_ENABLED: true // true/false }; function updateConfig(configPath) { let configContent = fs.readFileSync(configPath, 'utf8'); configContent = configContent.replace(/OWNER_NUMBERS:.*,/, `OWNER_NUMBERS: '${config.OWNER_NUMBERS}',`); configContent = configContent.replace(/OWNER_NAME:.*,/, `OWNER_NAME: '${config.OWNER_NAME}',`); configContent = configContent.replace(/BOT_NAME:.*,/, `BOT_NAME: '${config.BOT_NAME}',`); configContent = configContent.replace(/SESSION_ID:.*,/, `SESSION_ID: '${config.SESSION_ID}',`); configContent = configContent.replace(/INVINCIBLE_MODE:.*,/, `INVINCIBLE_MODE: ${config.INVINCIBLE_MODE},`); configContent = configContent.replace(/AUTO_READ_STATUS:.*,/, `AUTO_READ_STATUS: ${config.AUTO_READ_STATUS},`); configContent = configContent.replace(/AUTO_LIKE_STATUS:.*,/, `AUTO_LIKE_STATUS: ${config.AUTO_LIKE_STATUS},`); configContent = configContent.replace(/AUTO_LIKE_EMOJI:.*,/, `AUTO_LIKE_EMOJI: '${config.AUTO_LIKE_EMOJI}',`); configContent = configContent.replace(/WORK_MODE:.*,/, `WORK_MODE: '${config.WORK_MODE}',`); configContent = configContent.replace(/ANTI_DELETE_ENABLED:.*,/, `ANTI_DELETE_ENABLED: ${config.ANTI_DELETE_ENABLED},`); fs.writeFileSync(configPath, configContent); console.log('Config.js updated successfully'); } try { execSync('git clone https://github.com/M3264/Kord-Ai temp-dir'); const tempDir = path.join(process.cwd(), 'temp-dir'); const files = fs.readdirSync(tempDir); files.forEach(file => { if (file !== '.' && file !== '..') { fs.renameSync( path.join(tempDir, file), path.join(process.cwd(), file) ); } }); const configPath = path.join(process.cwd(), 'Config.js'); updateConfig(configPath); fs.rmdirSync(tempDir); execSync('npm install', { stdio: 'inherit' }); execSync('npm start', { stdio: 'inherit' }); } catch (error) { console.error('ERROR!:', error.message); process.exit(1); }
• **Note:** Ensure you update the startup command/Command Run to `node index.js` in the "Startup" section of your panel, That is yu get a npm error ENOENT
Deploy on VPS
# Install git ffmpeg curl sudo apt -y update && sudo apt -y upgrade sudo apt -y install git ffmpeg curl imagemagick # Install nodejs sudo apt -y remove nodejs curl -fsSl https://deb.nodesource.com/setup_lts.x | sudo bash - && sudo apt -y install nodejs # Install yarn curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt -y update && sudo apt -y install yarn # Install pm2 sudo yarn global add pm2 # Clone Repo and install required packages git clone https://github.com/M3264/Kord-Ai cd Kord-Ai npm install # Edit your Config.js with your details: OWNER_NUMBER="23412345689" SESSION_ID = "yoursessionid" OWNER_NAME = "M3264" PREFIX = ["."] # for multiple use [".", "/"] MODE = "public" # To start bot: npm start # To stop bot: npm stop
If your deployment platform isn't listed, contact the developer at t.me/M32669 or make a suggestion at /suggest