humanprotocol / human-protocol

Human Protocol python/js/ts Monorepo with example
https://dashboard.humanprotocol.org
MIT License
23 stars 33 forks source link

Chatbot - Milestone 2 #1360

Open portuu3 opened 10 months ago

portuu3 commented 10 months ago

Base on Milestone 1, Milestone 2 should have the following functionalities:

  1. Set a unique API key in the environment variables file. There was a mistake in Milestone 1, the api key should not be set by user, it should unique for all users and set by the bot owner as environment variable.
  2. Create chatbot roles. The roles Launcher and Viewer(default).
  3. SetRole command. This command is only allowed for chatbot owners.
  4. RemoveRole command. This command is only allowed for chatbot owners.
  5. List pending jobs. https://job-launcher-server-humanprotocol.vercel.app/swagger#/Job/JobController_getJobList
  6. The bot should return the results privately to the user who requested them.
  7. Use subgraph for tracking escrows to avoid overloading backend. Use this SDK function get_escrows. For this the bot will need to get the escrow address using get details endpoint, have in mind that the escrow address is not available until the escrow has been created on chain (around 10min max)
sarthakvijayvergiya commented 10 months ago

I've started working on it! @portuu3 Could you please assign the task to me?

portuu3 commented 10 months ago

I've started working on it! @portuu3 Could you please assign the task to me?

done!

sarthakvijayvergiya commented 9 months ago

Adding the pull request link here!!

https://github.com/sarthakvijayvergiya/humanprotocol-discord-bot/pull/5