insert this in .env file
PORT=3000
IS_INLINE=true
BOT_TOKEN=XXXXXXXXX:XXXXXXXXXXXXXXXXXXX-XXXXXXXXX
PAYMENT_KEY=XXXXXXXXXXXXX:XXXX:XXXXXXXXXXXX
DATABASE_URL=mysql://user:pass@DBHOST:3306/dbname
/ban USER_ID DAY
to ban user for a limited day
/ban USER_ID
to ban user permanently
/unban USER_ID
to unban user
/invoice
to get a custom invoice for this to work you need to set PAYMENT_KEY
in .env file
/start and /restart
to start or restart the bot
PORT is the port number on which the bot will run
IS_INLINE is a boolean value to set the bot keyboard to be inline or normal keyboards
PAYMENT_KEY is the payment key for the bot to work with payments if not ignore this
BOT_TOKEN is the bot token that you get from @BotFather
DATABASE_URL is the database url for the bot to work with database if not ignore this
- Run
npm install
to install prisma locally - Run
npx prisma migrate dev --name init
to create the database - Run
npx prisma generate
to generate the prisma client
- Clone this repo
- Run
npm install
- Run
npm run serve
to start the bot in development mode - Run
npm run build
to build the bot - Run
npm run start
to start the bot in production mode
© Mikiyas Lemlemu 📍 ETHIOPIA 🇪🇹