FelixWaweru / TiktokChatGPT

A conversational bot for tiktok livestreams built on ChatGPT.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TikTok TikTok

TiktokChatGPT

A conversational bot for tiktok livestreams built on ChatGPT.

Report Bug · Request Feature

Love the project? Please consider donating to help it improve!

Getting Started

To run this code, you require an API key from ElevenLabs and OpenAI.

ElevenLabs API Key

  • Sign up here for a free account.

OpenAI API Key

  • Sign up here for a free account.

Config

  • First, add your OpenAI and ElevenLabs API keys as well as the name of the TikTok account that's livestreaming in the .env.example file

  • Next, rename the .env.example file to .env

  • Finally, to run the project, run:

mkdir audio
# then
mkdir logs
# then
npm install
# then
npm start

Setup

TiktokChatGPT
├── docs         # Documentation
│   ├── images
│   └── CONTRIBUTING.md
├── audio        # Response audio file store
│   └── example.mp3
├── logs         # Log file store
│   └── access.log
├── app.js       # Tiktok livestream responder
├── gpt.js       # OpenAI prompt and response function
├── voice.js     # ElevenLabs vocal response function
├── logger.js    # Logging function
├── .env         # Credentials and environment variables
├── package.json
├── README.md

Contribution

Contributions are welcome. Checkout the CONTRIBUTING.md to learn more.

About

A conversational bot for tiktok livestreams built on ChatGPT.

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%