Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hoangv97/ai-chatbot
Integrate ChatGPT, Dall-E, Whisper and other AI models in Replicate into Messenger and Telegram bot
https://github.com/hoangv97/ai-chatbot
bottender chatbot chatgpt dall-e2 messenger-bot replicate telegram-bot typescript whisper
Last synced: 17 days ago
JSON representation
Integrate ChatGPT, Dall-E, Whisper and other AI models in Replicate into Messenger and Telegram bot
- Host: GitHub
- URL: https://github.com/hoangv97/ai-chatbot
- Owner: hoangv97
- Created: 2023-02-21T14:04:05.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-03T15:02:34.000Z (over 1 year ago)
- Last Synced: 2024-07-30T21:03:18.382Z (3 months ago)
- Topics: bottender, chatbot, chatgpt, dall-e2, messenger-bot, replicate, telegram-bot, typescript, whisper
- Language: TypeScript
- Homepage:
- Size: 580 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Messenger + Telegram bot with AI
## Installation
```sh
mkdir downloads# Install ffmpeg package
# Windows
choco install ffmpeg
# Ubuntu
sudo apt install ffmpegcp .env.example .env
# Edit .envyarn
yarn run start
```### Telegram commands
```text
ai - My assistant
apps - Show all apps
chat - ChatGPT bot
new - New conversation
new_char - New conversation with current character
imagine - Create image using Dall-E 2
speak - Text to speech
save - Save conversation
settings - Settings
debug - Debug
help - How to use this bot?
```## Changelog
24/3
- Add Telegram bot with ChatGPT
28/3
- Add voice chat to Telegram bot
8/4
- Update Apps + Settings - easier to config
## Configuration
### The `bottender.config.js` File
Bottender configuration file. You can use this file to provide settings for the session store and channels.
### The `.env` File
Bottender utilizes the [dotenv](https://www.npmjs.com/package/dotenv) package to load your environment variables when developing your app.
To make the bot work, you must put required environment variables into your `.env` file.
## Available Scripts
In the project directory, you can run:
### `npm run dev`
Runs the app in development mode.
The bot will automatically reload if you make changes to the code.
By default, server runs on [http://localhost:5000](http://localhost:5000) and ngrok runs on [http://localhost:4040](http://localhost:4040).To run in [Console Mode](https://bottender.js.org/docs/en/the-basics-console-mode), provide the `--console` option:
```sh
npm run dev -- --console
yarn dev --console
```### `npm start`
Runs the app in production mode.
By default, server runs on [http://localhost:5000](http://localhost:5000).To run in [Console Mode](https://bottender.js.org/docs/en/the-basics-console-mode), provide the `--console` option:
```sh
npm start -- --console
yarn start --console
```### `npm run lint`
Runs the linter rules using [Eslint](https://eslint.org/).
### `npm test`
Runs the test cases using [Jest](https://jestjs.io/).
## Learn More
To learn Bottender, check out the [Bottender documentation](https://bottender.js.org/docs/en/getting-started).
For more examples, see [Bottender examples](https://github.com/Yoctol/bottender/tree/master/examples).