Skip to content

D3LAB-DAO/cw7007-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This repository contains a bot implemented that interacts with a CosmWasm-based blockchain.

The bot periodically queries an NFT contract for request IDs, fetches associated data, processes the data using OpenAI's GPT-4 model, and updates the NFT descriptions with the generated responses.

Features

  • CosmWasm Interaction: Connects to a CosmWasm blockchain to interact with smart contracts.
  • OpenAI GPT-4 Integration: Uses OpenAI's GPT-4o mini model to process data and generate responses.
  • Automated NFT Description Updates: Updates NFT descriptions based on processed data.

How to Run

Environment Variables

Create a .env file in the root directory of your project and populate it with the following variables:

RPC_URL=<your_rpc_url>
CONTRACT_ADDRESS=<your_contract_address>
MNEMONIC=<your_wallet_mnemonic>
OPENAI_API_KEY=<your_openai_api_key>

Ensure all environment variables are set correctly before running the bot.

Running the Bot

To start the bot and the server, use the following command:

$ node src/bot.js

The server will listen on port 3327 by default.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published