Skip to content

Telegram bot that answers questions by sourcing answers from docs and codebases

Notifications You must be signed in to change notification settings

ApeWorX/apegenius

Repository files navigation

ApeGenius

The smartest ape in the jungle

Running your own bot

1. Replace knowledge-base.txt with your own knowledge-base

2. Set OPENAI_API_KEY and TELEGRAM_TOKEN environment variables.

You can test requests using python request.py without a telegram token

3. Override instructions and owner id to fit your usage.

4. Run or deploy to cloud

  • run locally with docker, or: pip install -r "requirements.txt" then python bot.py
  • or deploy to cloud with https://fly.io: flyctl deploy --ha=false (atm the script only supports 1 machine, check the example fly.toml)
  • add bot in a group and use /add_group groupid to whitelist it and the bot is ready to answer questions with /prompt whenever you want

5. Configure the bot

  • /add_admin your_id to add yourself as an admin
  • /add_group group_id to add a new group with rate limiting of 10 messages/day

About

Telegram bot that answers questions by sourcing answers from docs and codebases

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published