- 🔹 Add Your SESSION ID To Your
config.js
- 🔹 Also Add Your Github Auth Token (without gph_) And Github User Name To
config.js
- 🔹 Fork / Use This Template button එක Click කරන්න.
- 🔹 ඔබේ
SESSION ID
, Github Auth Token(gph_ නැතිව) සහ Github User Name:config.js
එකට එක් කරන්න.
There are 1 configuration file namely config.js
adjust it before installing.
const fs = require('fs');
if (fs.existsSync('config.env')) require('dotenv').config({ path: './config.env' });
function convertToBool(text, fault = 'true') {
return text === fault ? true : false;
}
module.exports = {
SESSION_ID: process.env.SESSION_ID === undefined ? '94759874797' : process.env.SESSION_ID, //ADD YOUR SESSION ID
GITHUB_USER_NAME: process.env.GITHUB_USER_NAME === undefined ? '' : process.env.GITHUB_USER_NAME, //ADD YOUR GITHUB USERNAME
GITHUB_AUTH_TOKEN: process.env.GITHUB_AUTH_TOKEN === undefined ? '' : process.env.GITHUB_AUTH_TOKEN, //ADD YOUR GITHUB AUTH TOKEN WITHOUT gph_ ex- G5OxxdvEbiBPWxm4A0xypQGlyCr4FS267ifz
WORK_TYPE: process.env.WORK_TYPE === undefined ? 'public' : process.env.WORK_TYPE, //ONLYME / ONLYGROUP OR PUBLIC
AUTO_READ_STATUS: process.env.AUTO_READ_STATUS === undefined ? 'true' : process.env.AUTO_READ_STATUS, //TRUE OR FALSE
PRESENCE: process.env.PRESENCE === undefined ? `available` : process.env.PRESENCE, //AVAILABLE, COMPOSING, RECORDING OR UNAVAILABLE
ALIVE: process.env.ALIVE === undefined ? `default` : process.env.ALIVE, //YOUR ALIVE MESSAGE OR SET IT TO defeault
OWNER: process.env.OWNER === undefined ? `94759874797` : process.env.OWNER, //BOTS OWNER NUMBER
PREFIX: process.env.PREFIX === undefined ? '.' : process.env.PREFIX, //BOTS PREFIX
MAX_SIZE: process.env.MAX_SIZE === undefined ? '200' : process.env.MAX_SIZE, //MAX UPLOAD SIZE
LOGO: process.env.LOGO === undefined ? `https://i.postimg.cc/JzHb8pfV/IMG-20241124-WA0139.jpg` : process.env.LOGO, //ALIVE IMAGE URL
ANTI_LINK: process.env.ANTI_LINK === undefined ? 'true' : process.env.ANTI_LINK, //TRUE OR FALSE
ANTI_BAD: process.env.ANTI_BAD === undefined ? 'true' : process.env.ANTI_BAD, //TRUE OR FALSE
ANTI_BOT: process.env.ANTI_BOT === undefined ? 'true' : process.env.ANTI_BOT, //TRUE OR FALSE
READ_MESSAGE: process.env.READ_MESSAGE === undefined ? 'true' : process.env.READ_MESSAGE, //SET cmd FOR ONLY READ COMMANDS OR SET all FOR READ ALL MESSAGES
ANTI_CALL: process.env.ANTI_CALL === undefined ? 'false' : process.env.ANTI_CALL, //TRUE OR FALSE
AUTO_BLOCK: process.env.AUTO_BLOCK === undefined ? 'false' : process.env.AUTO_BLOCK //SET cmd FOR ONLY BLOCK INBOX COMMANDS USED USERS OR SET all FOR BLOCK ALL IINBOX USERS
};
Option 1: Deploy on Heroku
- Create an Account on Heroku if you haven’t already.
- Click the button below to deploy directly on Heroku:
Option 2: Deploy on Koyeb
- Sign Up on Koyeb.
- Deploy your app using the button below:
Option 3: Deploy on Railway
- Create an Account on Railway if you don’t have one.
- Click the button below to deploy using Railway:
Option 4: Deploy on Toystack
- Create an Account on Toystack if you don’t have one.
- Click the button below to deploy using Toystack:
Option 5: Deploy on Render
-
Create an Account on Render if you don’t have one.
-
Click the button below to deploy using Render:
Option 6: Deploy on Replit
-
Create an Account on Replit if you don’t have one.
-
Click the button below to deploy using Replit:
Option 7: Github Workflows
Option 8: Pterodactly/Control Panel
Option 9: Or Any NodeJS Enviroment
- ✔️ | Simple
- ✔️ | No Button
- ✔️ | Multi Device
- ✔️ | Plugins
乂 COPY WORKFLOW CODE
name: Node.js CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Start application
run: npm start