Steem Voice A0.1 - First Development Update ! by fancybrothers

View this thread on steempeak.com
· @fancybrothers ·
$17.02
Steem Voice A0.1 - First Development Update !
<html>
<p><img src="https://cdn.steemitimages.com/DQmSUKmtgLfjbBE5MKpsnXCvTkD2hm9AZok78kKNFcwz6XX/Steem-Voice.png" width="825" height="477"/></p>
<h1>Steem Voice</h1>
<p><a href="https://github.com/Fancybrothers/SteemVoice">Github repository&nbsp;</a></p>
<p><a href="https://steemit.com/@fancybrothers">Author&nbsp;</a></p>
<img src="https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmR3wrmWvKw7t5hZARwMR9STyz2GhNCV9hFrXgTrdZPJ6N/Seperator.png" width="1487" height="161"/>
<p>Hello everyone. Welcome to the first update on the Steem Voice app. In the first post, I talked about some of the issues I faced and how I made the first three commands. If you missed the project's announcement post, you can check it out <a href="https://steemit.com/utopian-io/@fancybrothers/introducing-steem-voice-a-google-assistant-app-for-the-steem-blockchain"><strong>here</strong></a>.&nbsp;</p>
<p>I realized that to make this app work "correctly", <strong>Organization was key</strong>, which I am very bad at since I'm still new to programming. I had to improve the structure of the code so my next main goal was to organize the code.</p>
<p>Moving on in the project, The first thing I did was to change the structure of the app to get rid of duplications <em>e.g. 'what is your username'</em>. To do so, I had the app ask the user for his username only once after the 'welcome message' using an intent called <code>Welcome_username</code> then I assigned it to a variable I called <code>St_username</code> which I used later in all the other commands. Next, I added an intent called <code>Change_username</code> which serves as a way for the user the change the username used. To avoid duplication, I used the same function of the <code>Welcome_username</code>:</p>
<p><center>https://cdn.steemitimages.com/DQmeSiUtxzwui8T16URRin8e9ygW8sfHe1FNpZvmSgJuKW7/username.PNG</center></p>
<p>To keep things even more organized, I made a new class called <code><strong>Steemian</strong></code> where I added 3 of the already existing commands. This class would make it easier to add new commands while keeping things neat and tidy.&nbsp;</p>
<p>Next on my list was to remove unnecessary functions. For instance, <code>rep_cal</code> was already implemented in Steem/Python so I removed it and used <code>.rep</code> instead. <code>clean</code> was also unnecessary because I could use <code>Amount</code> so I went ahead and removed it.&nbsp;</p>
<p>Here's a video showing the new structure...</p>
<p>https://youtu.be/K64ynlU4CBQ</p>
<p>Even after all that, the code could still be organized even more which I'll get to soon. With that out of the way, it was time to start adding new commands...</p>
<h1>What are the new features and  how did I implement them?</h1>
<p>I started working on the new commands which are getting a user's steem, sbd, and savings. Thankfully, Steem/python already has all that covered so I used <code>.balances</code> and I added 3 new intents. Everything worked perfectly. Then, I moved on to the next command on my list which was to calculate a user's account value. To do so, I had to use both steem and steem dollars price so I employed coinmarketcap's api to get the latest prices in a function called &nbsp;<code>cmc_price</code> like so:</p>
<p><center>https://cdn.steemitimages.com/DQmSSjYczFuPLLpFrpWxTk32izqNwbCdkLUCSqfpcuVhEek/coinmarketcap.PNG</center></p>
<p>Here's a video showing all the new commands&nbsp;</p>
<p>https://youtu.be/GVUA6BCRbac</p>
<p>After that, I wanted to add another command which tells you the price of steem and sbd. So I used the same function <code>cmc_price</code> , added two new intents and <strong>voilà</strong> &nbsp;...</p>
<p>https://youtu.be/9pBI8M12G1M</p>
<p>At the end, the code had way too many intents. I had to do something to reduce them so I combined all the '<em>How much'</em> commands into one intent called <code>wallet</code> then I used an entity called <code>desire</code> and a bunch of if conditions to specify which response is returned. I did the same thing to the prices commands.</p>
<p><img src="https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmR3wrmWvKw7t5hZARwMR9STyz2GhNCV9hFrXgTrdZPJ6N/Seperator.png" width="1487" height="161"/></p>
<h1>Roadmap</h1>
<p>This project is still far from being ready. There is a lot to fix, add and to organize. For instance, I have to add Unit tests which I should have done from the very start. The code is still a bit messy and needs more improvement. For now, I would rather focus on adding a few more commands.</p>
<p>There are lots and lots of commands to be added. <strong>All help is appreciated.&nbsp;</strong></p>
https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmR3wrmWvKw7t5hZARwMR9STyz2GhNCV9hFrXgTrdZPJ6N/Seperator.png
<h1>How to contribute?&nbsp;</h1>
<p>Everyone is welcome to aid. You can contribute to the development of this project by creating a pull request to my repository. You can also get in touch with me on Discord &nbsp;at <strong>Fancybrothers#7429</strong> or on Steem.chat at <strong>fancybrothers</strong> or simply leave your idea down below.</p>
<p>If you want to test this app on your own, contact me and I'll send you the whole Dialogflow agent or a temporarily link to test it out.</p>
<p><em>My Github account: https://github.com/Fancybrothers</em></p>
</html>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id65,824,490
authorfancybrothers
permlinksteem-voice-a0-1-first-development-update
categoryutopian-io
json_metadata{"app":"steemit\/0.1","links":["https:\/\/github.com\/Fancybrothers\/SteemVoice","https:\/\/steemit.com\/@fancybrothers","https:\/\/steemit.com\/utopian-io\/@fancybrothers\/introducing-steem-voice-a-google-assistant-app-for-the-steem-blockchain","https:\/\/youtu.be\/K64ynlU4CBQ","https:\/\/youtu.be\/GVUA6BCRbac","https:\/\/youtu.be\/9pBI8M12G1M","https:\/\/github.com\/Fancybrothers"],"format":"html","image":["https:\/\/cdn.steemitimages.com\/DQmSUKmtgLfjbBE5MKpsnXCvTkD2hm9AZok78kKNFcwz6XX\/Steem-Voice.png"],"tags":["utopian-io","development","steem","steemit","python"]}
created2018-11-10 21:50:12
last_update2018-11-10 21:50:12
depth0
children4
net_rshares19,905,813,518,429
last_payout2018-11-17 21:50:12
cashout_time1969-12-31 23:59:59
total_payout_value12.990 SBD
curator_payout_value4.027 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length5,346
author_reputation34,762,508,743,877
root_title"Steem Voice A0.1 - First Development Update !"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (34)
@codingdefined ·
$8.35
Thank you for your contribution. It's great to see a different type of contribution. I can see you have taken the moderator comments seriously and improves the code base which is good to see. You have also written comments in the code kudos to that,

One place, I can see the code, but the people looking at the code will not know what exactly is 1312 and 1230, a little explanation for the same would have been better. 

```
SBD_price = self.cmc_price('1312')
STEEM_price = self.cmc_price('1230')
```

----

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2332212).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
👍  , , , , , , , , ,
properties (23)
post_id65,888,545
authorcodingdefined
permlinkre-fancybrothers-steem-voice-a0-1-first-development-update-20181112t043813772z
categoryutopian-io
json_metadata{"app":"steemit\/0.1","tags":["utopian-io"],"links":["https:\/\/join.utopian.io\/guidelines","https:\/\/review.utopian.io\/result\/3\/2332212","https:\/\/support.utopian.io\/","https:\/\/discord.gg\/uTyJkNm","https:\/\/join.utopian.io\/"]}
created2018-11-12 04:38:15
last_update2018-11-12 04:38:15
depth1
children1
net_rshares9,536,190,987,397
last_payout2018-11-19 04:38:15
cashout_time1969-12-31 23:59:59
total_payout_value6.312 SBD
curator_payout_value2.033 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length998
author_reputation71,157,752,447,147
root_title"Steem Voice A0.1 - First Development Update !"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (10)
@utopian-io ·
Thank you for your review, @codingdefined! Keep up the good work!
properties (22)
post_id66,028,134
authorutopian-io
permlinkre-re-fancybrothers-steem-voice-a0-1-first-development-update-20181112t043813772z-20181114t164512z
categoryutopian-io
json_metadata{"app":"beem\/0.20.9"}
created2018-11-14 16:45:15
last_update2018-11-14 16:45:15
depth2
children0
net_rshares0
last_payout2018-11-21 16:45:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length65
author_reputation152,913,012,544,965
root_title"Steem Voice A0.1 - First Development Update !"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-ua ·
#### Hi @fancybrothers!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
post_id65,889,994
authorsteem-ua
permlinkre-steem-voice-a0-1-first-development-update-20181112t052159z
categoryutopian-io
json_metadata{"app":"beem\/0.20.9"}
created2018-11-12 05:22:00
last_update2018-11-12 05:22:00
depth1
children0
net_rshares0
last_payout2018-11-19 05:22:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length292
author_reputation23,203,609,903,979
root_title"Steem Voice A0.1 - First Development Update !"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@utopian-io ·
Hey, @fancybrothers!

**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Get higher incentives and support Utopian.io!**
 Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
post_id65,914,148
authorutopian-io
permlinkre-steem-voice-a0-1-first-development-update-20181112t150645z
categoryutopian-io
json_metadata{"app":"beem\/0.20.9"}
created2018-11-12 15:06:45
last_update2018-11-12 15:06:45
depth1
children0
net_rshares0
last_payout2018-11-19 15:06:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length595
author_reputation152,913,012,544,965
root_title"Steem Voice A0.1 - First Development Update !"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000