-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As a user I want to praise anyone on Twitter #1075
Comments
Just to confirm, only registered users should be able to give praise. Currently, is that permission handled in the community DB or the Discord bot? |
"5. Discord Bot posts praise to API" "10. Twitter notifies user that the praise message has a reply" |
@kristoferlund In the Discord bot we have an account activation step that the user needs to activate and sign the message with their wallet before trying to praise. |
The activation step will be slightly different for the Twitter bot. And it is not 100% decided yet how it will work. Item 3 in the usecase should be "Twitter bot verifies that user has activated their account and are allowed to praise" My thought was that you could begin with the praise command without the activation step. Allow anyone to praise to begin with. And then we will add activation when I am back. |
@RamRamez, see suggested sourceId and sourceName definitions above. Ok? |
Great! |
@kristoferlund |
It seems all replies need to contain some unique information. Take a look at https://threadreaderapp.com/. Mentioning the user and linking to praise dashboard perhaps is enough.
|
@kristoferlund Yes, that's a good idea. We can do this for successful praises. What about error messages? |
Main success scenario
@givethpraise @user for doing something great
@givethpraise
user-agent
to let theAPI
know which bot request came fromhost
to let theAPI
know which community the request came fromx-api-key
gives the bot access to call theAPI
ENV
and is not community specificsourceName
andsourceId
follows the format specified belowAPI
looks uphost
and verifies that community is in stateactive
API
makes changes to DB@givethpraise
in this example)ℹ️ Look at praise handler in Discord bot code and make sure to include all steps done there
Extensions
Details
TwitterBot verifies that user has activated their account and are allowed to praise
User
object is connected to theirUserAccount
object.For reference: Praise
sourceId
andsourceName
for DiscordPraise
sourceId
andsourceName
for TwitterWireframes
Links and docs
Full wireframes here: https://miro.com/app/board/uXjVMBzP9YQ=/?share_link_id=604231143882
The text was updated successfully, but these errors were encountered: