simplex-bot/README.md
2025-01-09 07:56:06 +00:00

1.3 KiB

To use this bot:

  1. Set up your environment:
export VENICE_API_KEY="your_venice_api_key_here"
  1. Build and run the bot using Stack or Cabal.

Key features of this implementation:

  1. The bot only responds to messages prefixed with /bot 1
  2. It uses the Venice.ai API for generating responses 2
  3. The API key is loaded from environment variables for security
  4. Error handling for API calls is implemented
  5. The bot maintains the SimpleX chat protocol while adding Venice.ai integration

Usage example:

User: /bot What is the capital of France?
Bot: Paris is the capital of France.

User: regular message
Bot: (no response)

To improve this further, you could:

  1. Add rate limiting
  2. Implement conversation history
  3. Add more command options (like /bot help, /bot reset)
  4. Add error logging
  5. Implement retry logic for failed API calls

Let me know if you need any clarification or have questions about specific parts of the implementation!