Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandresanlim/chat-btc
A "Chat GPT" for bitcoiners. Development with React Native and Expo
https://github.com/alexandresanlim/chat-btc
bitcoin btc chat chatbot chatgpt
Last synced: about 2 months ago
JSON representation
A "Chat GPT" for bitcoiners. Development with React Native and Expo
- Host: GitHub
- URL: https://github.com/alexandresanlim/chat-btc
- Owner: alexandresanlim
- License: mit
- Created: 2024-10-26T23:12:06.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-11-10T13:54:42.000Z (2 months ago)
- Last Synced: 2024-11-12T20:40:28.851Z (2 months ago)
- Topics: bitcoin, btc, chat, chatbot, chatgpt
- Language: TypeScript
- Homepage:
- Size: 2.75 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ChatBTC (Beta)
A "ChatGPT" for bitcoiners
# Menu- [Contribute](#contribute)
- [š¤ Bots](#-bots)
- [Prompts](#prompts)
- [Create](#prompts)
- [Create with parameter](#create-with-parameter-)
- [Get data](#get-data-)
- [Format data](#format-data-)
- [Set on quich type or auto complete](#set-on-quick-type-or-auto-complete-)
- [PR sample](https://github.com/alexandresanlim/chat-btc/pull/2)
- [ToDo](#todo-)# Contribute
## š¤ Bots
You can see all it hereTo create new one, follow this template:
```json
{
"id": "mempool",
"name": "Mempool",
"avatar": "https://freeter.io/web-apps/bitcoin/mempool-space/mempool-space.png"
}
```
and put on [services/bots](https://github.com/alexandresanlim/chat-btc/tree/master/services/bots) path## Prompts [š](#menu)
### Create [š](#menu)
To create new one, follow this template:
```json
{
"url": "https://mempool.space/api/v1/difficulty-adjustment",
"botId": "mempool",
"answer": {
"success": "Follow Bitcoin difficulty adjustment information:\n\nā¢ Progress percent: [progressPercent:percent]\nā¢ Difficulty change: [difficultyChange:decimal]\nā¢ Estimated retarget date: [estimatedRetargetDate:date]\nā¢ Remaining blocks: [remainingBlocks]\nā¢ Remaining time: [remainingTime:time]\nā¢ Previous retarget: [previousRetarget:decimal]\nā¢ Previous time: [previousTime:time]\nā¢ NextRetarget height: [nextRetargetHeight]\nā¢ Time avg: [timeAvg:time]\nā¢ Adjusted time avg: [adjustedTimeAvg:time]\nā¢ Expected blocks: [expectedBlocks:decimal]",
"error": "š No one Bitcoin adjustment was found, please try again"
}
}
```
and put on [services/prompts](https://github.com/alexandresanlim/chat-btc/tree/master/services/prompts) pathā ļø The file name should match the prompt entered by the user to invoke this prompt.
### Create with parameter [š](#menu)
When the URL requires a parameter, as in the example below, you can use `{0}` in the URL and define a default parameter as `"default": "Bitcoin"`. This represents the secondary term entered by the user.
```json
{
"url": "https://api.coincap.io/v2/assets/{0}",
"botId": "coincap",
"parameters": {
"default": "Bitcoin"
},
"answer": {
"success": "The current price of [data.name] ([data.symbol]) is [data.priceUsd:currency], over the past 24 hours, it has changed by [data.changePercent24Hr:percent]",
"error": "š No one Bitcoin price was found, please try again"
}
}
```
### Get data [š](#menu)
It is represented within `[]` brackets, indicating the path to retrieve data from the API response.### Format data [š](#menu)
You can format data using `[pathData:{format}]`. Supported formats include:
Percent: `[pathData:percent]`
Decimal: `[pathData:decimal]`
Date: `[pathData:date]`
Time: `[pathData:time]`
Currency: `[pathData:currency]`### Set on quick type or auto complete [š](#menu)
To set this up, follow this template:
```json
{
"title": "Price",
"value": "Price",
"autoComplete": ["Bitcoin", "Ethereum", "Solana"]
},
```
and set on this [file](https://github.com/alexandresanlim/chat-btc/blob/master/services/prompts/list/us.json).- auto complete is optional
## ToDo [š](#menu)
- [ ] Create unit test
- [ ] Optin to create and manager Bitcoin wallets
- [ ] P2P community
- [ ] Option to set real IA as ChatGPT