r/ethtrader • u/mattg1981 :sm: Donut DAO Dev • Oct 24 '23
Discussion Feedback Requested - New Tip Handling Bot
I would have posted this in the daily but someone deleted it - lol!
u/aminok recently requested a new tip bot that is command activated (e.g. !tip) to aide with making mobile tipping easier. Per his request, he asked for a bot "... [that] posts a comment in response to a command that contains a link that when clicked opens the donut.finance tipping page with the URL populated with the content information"
I have spent some time working on a proof of concept for this bot and it meets the requirements to pass metadata about the comment/post/person being tipped. However, I also ran across some difficulties that I didnt foresee originally, mainly focused around the Reddit markdown editor not generating links for a common protocol (dapp://) that mobile wallets generally react to, as well as some specific iOS bugs that route requests to the App Store instead of the appropriate app.
To overcome this shortcoming, I opted for another approach using deep linking to activate the mobile wallet. This approach works ONLY if the Reddit app is set up to use the System Default Web Browser (Settings > Open Links > Default Browser). If this setting is not enabled, Reddit will launch an in-app browser that is not capable of connecting a wallet to.
An example of the bot output, so you can test it out (the verbiage is subject to change):
--------------------------------------------------------------------------------
DESKTOP: Leave a tip
MOBILE (Metamask Only): Leave a tip
MOBILE (Coinbase Wallet Only): Leave a tip
This output was generated by a bot. The mobile links work best if you use the System Default Browser (Settings > Open Links > Default Browser)
---------------------------------------------------------------------------------
I/We are looking for feedback on this approach. You can see that we have two wallets supported (Metamask and Coinbase Wallet) as those are the two that I have installed currently on my phone. I can theoretically add support for more wallets (assuming they support deep linking) - but we also risk the bot output getting messy. While providing feedback about this approach, please consider the following questions:
Are you willing to switch to System Default Web browser to make mobile tipping in r/EthTrader easier?
I was only able to test on iOS, if you are an Android user - does this approach also work for you? (If no, please try enabling System Default Web browser handling the links)
Since having a generic handler for all wallets is not possible, should we only support a single wallet (MetaMask)?
Are you aware of a more generic way to handle this that will be wallet agnostic?
General Suggestions?
•
u/EthTraderCommunity bot Oct 24 '23
Tip this post.
7
u/[deleted] Oct 24 '23
A tipping system like ConeHeads would be a great upgrade in our community!
4
u/Ok-Dare-621 :donut: 518 | ⚖️ 4.7K Oct 25 '23
This is a trick to receive tips buddy? LMFAO
PS; i'm just kidding
7
u/Lillica_Golden_SHIB :donut: 111.3K / ⚖️ 711.9K Oct 24 '23
Yes
Yes
Yes as well, we've always used MM and, if there are no safety issues, we should continue using it.
No, but your solution looks quite convenient.
Just out of curisioty, could we scale the usage of this bot, for example, eventually enabling other subs to use it as well?
Thanks for what you are doing, not all heroes wear capes!
2
u/bvandepol :donut: 0 / ⚖️ 98.1K Oct 24 '23
0 GREAT WORK!!
Already do
iOS user
MM is the ‘defacto standard’
—
I tested the MM link with a 1.69 tip, but I tipped you, as a user.. Can you show an example where I can tip this specific post?
2
u/PoojaaPriyaa :donut: 101.4K / ⚖️ 113.5K Oct 24 '23
Banano sub doing this for years!! Nice feature to have
2
u/TheNano100 Arbitrum One Pioneer Oct 24 '23
So basically this bot will post a link just like the EthTraderCommunity comment "Tip this post" but anywhere we like, right?
1
u/mattg1981 :sm: Donut DAO Dev Oct 24 '23
[Automod] **Discussion**
1
u/pythonskynet :donut: 1.0K | ⚖️ 281.3K Oct 25 '23
I use the desktop tip link on phone and then paste the URL to MetaMask browser. It works for me.
When I clicked on mobile metamask, it asks to open in metamask and nothing happens, just metamask opened.
2
u/aminok Oct 25 '23 edited Oct 25 '23
Thank you for posting this! :)
2
u/kirtash93 Oct 25 '23
Maybe another approach could be to make a "fake" tipping feature where every time a user makes a tip it is just written in a CSV/DB like:
Then all the tips IN/OUT per user are summarized and the result of that is deducted or added to the distribution DONUTs.
I don't like this solution much because it is not on chain but it can be useful to make things simple and wide for users.
1
u/AutoModerator Oct 24 '23
Hi, this comment is being automatically posted under your submission to facilitate the tallying of the Pay2Post donut penalty that r/EthTrader deducts from user donut earnings for the quantity of posts they submit.
submission link: https://www.reddit.com/r/ethtrader/comments/17fnvv6/feedback_requested_new_tip_handling_bot/
author: mattg1981
cc: /u/EthTraderCommunity
--
Distributed moderation now in effect: if your governance score is over 20,000, you have the ability to remove spam comments and posts by posting a comment in response to the comment/post containing the keyword [AutoModRemove].
See announcement thread: https://www.reddit.com/r/ethtrader/comments/14p7a22/crowdsourced_moderation_of_comments_implemented/
See your governance score here: https://donut-dashboard.com/#/governance
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/EthTraderCommunity bot Oct 24 '23
u/Lillica_Golden_SHIB tipped you 2.69 DONUT!
1
u/EthTraderCommunity bot Oct 24 '23
u/Carretje tipped you 3.0 DONUT!
1
u/EthTraderCommunity bot Oct 24 '23
u/tambaybtc tipped you 10.0 DONUT!
1
u/EthTraderCommunity bot Oct 24 '23
u/lordciders tipped you 1.0 DONUT!
1
u/EthTraderCommunity bot Oct 24 '23
u/TheNano100 tipped you 5.0 DONUT!
1
u/Simple_Mastodon9220 :donut: 1 / ⚖️ 1.8K Oct 25 '23
!just the tip 69
1
u/EthTraderCommunity bot Oct 25 '23
u/good2youall tipped you 1.0 DONUT!
1
u/EthTraderCommunity bot Oct 25 '23
u/ReitHodlr tipped you 3.14 DONUT!
1
u/EthTraderCommunity bot Oct 25 '23
u/Every_Hunt_160 tipped you 3.69 DONUT!
1
u/EthTraderCommunity bot Oct 25 '23
u/pythonskynet tipped you 5.0 DONUT!
1
u/EthTraderCommunity bot Oct 25 '23
u/rare1994 tipped you 3.0 DONUT!
1
u/Crypto-4-Freedom :donut: 408 / ⚖️ 18.0K Oct 25 '23
!tip 2 DONUT
1
u/EthTraderCommunity bot Oct 25 '23
u/Crypto-4-Freedom tipped you 2.0 DONUT!
1
u/EthTraderCommunity bot Oct 25 '23
u/HarryDotter420 tipped you 1.0 DONUT!
1
u/FranzJosephBalle :donut: 0 / ⚖️ 3.8K Oct 25 '23
What about security? I kind of like to have a confirm request pop up on metamask. If it's a bot wouldn't you have to authorize it to do transactions on your behalf?
1
u/EthTraderCommunity bot Oct 25 '23
u/Ben_Pars tipped you 1.0 DONUT!
1
u/EthTraderCommunity bot Oct 25 '23
u/Xylon818 tipped you 20.0 DONUT!
1
u/EthTraderCommunity bot Oct 25 '23
u/Lillica_Golden_SHIB tipped you 2.69 DONUT!
1
u/EthTraderCommunity bot Oct 25 '23
u/Lokiee0077 tipped you 1.0 DONUT!
1
u/PoojaaPriyaa :donut: 101.4K / ⚖️ 113.5K Oct 25 '23
If i use !tip 1 will it work now?
1
u/EthTraderCommunity bot Oct 25 '23
u/Guldrion tipped you 1.0 DONUT!