Skip to content

jellydn/chatbot-starter-app

Repository files navigation

Welcome to chatbot-starter-app 👋

Version Documentation Maintenance License: MIT

Develop chatbot with zero configuration using typescript

#Build with IT Man - ChatBot & AI - Part 1 [Vietnamese]

Prerequisites

  • node >=16.20.0

Install

pnpm install

Usage

git clone https://github.com/jellydn/chatbot-starter-app.git

Create .env from .env.example then run below command

pnpm dev

Run tests

pnpm test

How to setup

Telegram

  1. Get telegram token
  2. Paste token to .env TELEGRAM_TOKEN=YOUR_TOKEN
  3. Uncomment // import './render/telegram'; inside src/index.ts
  4. Run npm run dev and check your bot

Discord

  1. Get discord token
  2. Paste token to .env DISCORD_TOKEN=YOUR_TOKEN
  3. Uncomment // import './render/discord'; inside src/index.ts
  4. Run npm run dev and check your bot

Slack

  1. Create slack app
  2. Paste token to .env SLACK_TOKEN=YOUR_TOKEN
  3. Paste signing secret to .env SLACK_SIGNING_SECRET=YOUR_SIGNING_SECRET
  4. Run npm run start-tunnel and connect the public url with slack webhook.
  5. Uncomment // import './render/slack'; inside src/index.ts
  6. Run npm run dev and check your bot

Facebook

  1. Create facebook app
  2. Paste credentials to .env
  3. Run npm run start-tunnel and connect the public url with facebook webhook.
  4. Uncomment // import './render/facebook'; inside src/index.ts
  5. Run npm run dev and check your bot

Author

👤 Dung Huynh

Show your support

Give a ⭐️ if this project helped you!