Coder Social home page Coder Social logo

ngviethoang / ai-chatbot Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 594 KB

Integrate ChatGPT, Dall-E, Whisper and other AI models in Replicate into Messenger and Telegram bot

JavaScript 17.52% TypeScript 79.94% HTML 2.54%
chatbot chatgpt messenger-bot bottender dall-e2 replicate telegram-bot whisper typescript

ai-chatbot's Introduction

Messenger + Telegram bot with AI

Installation

mkdir downloads

# Install ffmpeg package
# Windows
choco install ffmpeg
# Ubuntu
sudo apt install ffmpeg

cp .env.example .env
# Edit .env

yarn

yarn run start

Telegram commands

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 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 and ngrok runs on http://localhost:4040.

To run in Console Mode, provide the --console option:

npm run dev -- --console
yarn dev --console

npm start

Runs the app in production mode.
By default, server runs on http://localhost:5000.

To run in Console Mode, provide the --console option:

npm start -- --console
yarn start --console

npm run lint

Runs the linter rules using Eslint.

npm test

Runs the test cases using Jest.

Learn More

To learn Bottender, check out the Bottender documentation.

For more examples, see Bottender examples.

ai-chatbot's People

Contributors

hoangv97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dnuzzolillo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.