status-im / hackathon

Status API Hackathon
http://hackathon.status.im
32 stars 48 forks source link

Dr. WeTrust #38

Closed morelazers closed 7 years ago

morelazers commented 7 years ago

Status Hackathon Submission

Type: Bot, utilising an existing open-source Smart Contract Github Repo: https://github.com/morelazers/SaveWithStatus YouTube Video: https://youtu.be/QymFdyXMUv0 (apologies for length, watch it on 1.25x speed 😉 ) Description: We will be creating a peer-to-peer savings chatbot, utilising the existing ROSCA smart contract which has been developed by WeTrust, the repo is here: WeTrustPlatform/rosca-contracts.

We hope to create a groupchat bot, which can update participants on the status of the savings fund, and prompt them to contribute when it is time. If a groupchat bot isn't possible, we will attempt to do the same but in one-to-one chatbot contexts. Saving with your friends just got a whole lot more Ethereum 😄

Team Members: Preferred Name: Tom Github Handle: @morelazers Slack Username: @ tomnash

Preferred Name: Shine Github Handle: @shine2lay

Preferred Name: Zaw Mai Github Handle: @zawmai

commiteth commented 7 years ago

Current balance: 0.00000000 Contract address: 0xd5e73e4bd98e481f190cc54477cfb3c0c35c962a QR Code Network: Mainnet To claim this bounty sign up at https://commiteth.com

morelazers commented 7 years ago

Dr. WeTrust!

This is our entry to the Status.im hackathon!

Dr. WeTrust is a bot, who helps you interact with WeTrust ROSCA-like Trusted Lending Circles. Start chatting to the doctor to create a Circle, then share the address with your friends to let them get involved :)

Getting it running

Do the usual, enable debugging mode in the app.

Do npm install.

Serve the bot file with truffle serve.

Shoehorn the doctor into to your list of Status contacts with something like this:

status-dev-cli add '{"whisper-identity": "doctor-wetrust",  "name": "Dr. WeTrust", "bot-url": "http://<MY_LOCAL_IP>:8080/bot/bot.js"}'

Be sure to swap out MY_LOCAL_IP for your own ;)

Considerations

Dr. WeTrust, whilst being a pretty clever chap, has a few gaps in his brain. Here are a couple of the things which would need to be fixed in a production system:

We would also love to make some improvements:

There are a lot more comments in the public/bot/bot.js file about some of the more technical issues.