Skip to content

diegogd/GhostWhisper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ghost Whisper

Instructions

You can follow the guide of this presentation on doc/slides.md

cd doc
npx @marp-team/marp-cli@latest slides.md --pdf --allow-local-files

To launch the slides in server mode:

PORT=8070 npx @marp-team/marp-cli@latest . -w -s

Develop

To install the bun environment execute:

curl -fsSL https://bun.sh/install | bash

Install dependencies:

cd src
bun install

Init Docker Compose with Ghost

  • Copy the file .env.example to .env and complete the missing variables.
  • Some details to obtain these keys are described in the slides.
BOT_TOKEN=bot_token
# JWT secrets - You can safely ignore it
SECRET=my_super_secret_jwt
# OpenAI Key https://platform.openai.com/account/api-keys
OPENAI_API_KEY=sk-...

# Pezzo integration
PEZZO_API_KEY=...
PEZZO_PROJECT_ID=...
PEZZO_PROMPTS=Spanish Casual|Polish Casual # Names of prompts defined in Pezzo
PEZZO_ENVIRONMENT=Production

# Ghost integration
GHOST_HOST=http://ghost:2368
GHOST_ADMIN_API_KEY=...

Start the containers to run the telegram bot and a Ghost instance.

docker-compose up -d 

To obtain GHOST_ADMIN_API_KEY:

  • Open Ghost link and complete the login information
  • After creating the account go to New custom integration and generate a new application.
  • Copy the Admin API key to the GHOST_ADMIN_API_KEY key in the .env file and restart the server.
  • Restart docker-compose: docker-compose restart

About

Telegram bot that uses Whisper, Pezzo with ChatGPT and Ghost to create blog articles from descriptions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors