/kbbi-bot

Bot KBBI yang menggunakan metode web scraping

Primary LanguageTypeScript

KBBI Bot

Sebuah Bot Telegram KBBI yang datanya diambil menggunakan metode Web Scraping. Sumber datanya diambil dari situs resmi KBBI

Built With

Getting Started

Prerequisites

  • Node.js
  • Node.js Package Manager (NPM, Yarn, PNPM)

Installation

  1. Clone repo ini
git clone https://github.com/tfkhdyt/kbbi-bot
  1. Masuk ke folder kbbi-bot
cd kbbi-bot
  1. Install dependencies
# NPM
npm install

# Yarn
yarn install

# PNPM
pnpm install
  1. Jalankan Bot
# NPM
npm run dev

# Yarn
yarn dev

# PNPM
pnpm dev

Usage

  • Run the bot (watch mode)
# NPM
npm run dev

# Yarn
yarn dev

# PNPM
pnpm dev
  • Build
# NPM
npm run build

# Yarn
yarn build

# PNPM
pnpm build
  • Run the bot
# NPM
npm run start

# Yarn
yarn start

# PNPM
pnpm start
  • Format the code (Prettier)
# NPM
npm run format

# Yarn
yarn format

# PNPM
pnpm format
  • Lint the code (ESLint)
# NPM
npm run lint

# Yarn
yarn lint

# PNPM
pnpm lint

Configuration

Cek file src/config/config.ts

Environment Variable

name type required? description
BOT_DOMAIN URL true (Production only) URL bot yang telah di-hosting, untuk keperluan webhook
PORT number false Port untuk server
BOT_TOKEN string true Token dari Bot Telegram
NODE_ENV development or production true Mode bot
ADMIN_ID number true ID dari Admin, untuk keperluan bug report

Contact

         

Support

Tekan tombol di bawah untuk membantu saya lewat donasi