Code Monkey home page Code Monkey logo

Comments (2)

commiteth avatar commiteth commented on July 1, 2024

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

from hackathon.

morelazers avatar morelazers commented on July 1, 2024

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:

  • Currently you can load anyone else's Circle into your own chat

  • There are no restrictions on who can join the Circle. This is a fairly simple fix, we would just force the organiser to invite users manually. Adding this now wouldn't be great for UX, as we can't access the contact list from the chat API, so we have left it open as a PoC.

We would also love to make some improvements:

  • Create a webview-based interface for checking the status of Lending Circles at a glance, without having to issue commands. This would require either a proxy-contract, to store mappings between users/circles, or it would require the sharing of LocalStorage variables between the webview and the bot (something which afaik doesn't exist in Status yet).

  • Some more detailed instructions, currently there are some instructions within the /create command's suggestions, but there are no real detailed, right-to-the-core instructions which share what the project is about and how to chat with Dr. WeTrust successfully. It would benefit users to know about Lending Circles prior to chatting with the doctor.

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

from hackathon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.