thenewboston-developers / thenewboston-Backend

API for thenewboston.
18 stars 10 forks source link

Ia Discord Integration #215

Closed buckyroberts closed 3 months ago

buckyroberts commented 4 months ago

Overview

Develop a Discord bot to allow Discord users to interact with Ia and thenewboston.com.

Authentication

We will use the following method for authentication:

Functionality

Users can interact with the bot using the /ia command followed by natural language instructions.

Example:

/ia What is the capital of Spain?

Future Development

In the next version, we plan to add support for function calling, enabling actions like:

/ia send @Muhammad Abdurrehman 10 TNB

Reference: OpenAI Function Calling

Requirements

To use the Ia Discord integration:

  1. Must have a thenewboston.com account
  2. The user's thenewboston.com account must be linked to their Discord account
  3. Each /ia command will cost 1 TNB

If any requirement is not met, the bot will respond with an error message indicating the reason for failure.

Development Tasks

  1. Work with Bucky to develop a prompt template
  2. Implement the bot using the developed prompt template
  3. Create the authentication system on thenewboston.com for linking Discord accounts
  4. Implement the /ia command functionality
  5. Set up the TNB charging system for each command
  6. Develop error handling for unmet requirements

Future Improvements