create account

Stemmit mention tool -- add service mention as the backup of the template mention way and add another bind funciton by cha0s0000

View this thread on: hive.blogpeakd.comecency.com
· @cha0s0000 · (edited)
$48.81
Stemmit mention tool -- add service mention as the backup of the template mention way and add another bind funciton
## New Features
### What feature(s) did you add?

- Add bind steemit accoun by sending command directly to wechat public account

- Check if bind repeatedly the same steemit account

- Add different ways to mention user with their steemit new information

  ![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1520773997/wkk2vtxohikqoi1vtiyp.png)

  ---

  ![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774009/bm9pzjky2y0jojsnq5cz.png)

  ---

  ![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774020/pyz3w4jz5rmo10kfgwi6.png)

  ---

  ![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774033/li7xccerzn8t33e4wnpm.png)

  ---

  ![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774051/hwtdgqpm7mr9uxlosjt9.png)

  ---

  ![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774062/dnhhlsydjtkvfnma3aiu.png)

  ---

  ![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774073/aeknerrygnkkouv0va9k.png)

  ---

  ![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774087/nf8mbhud1nggyra6tsbv.png)

  ​

----

### Background

There are two ways wechat public account sending mention messages to wechat user actively 

- Template mention message api
- Service mention message api

Both of two ways have the limitation of using times

|       way        | daily times |
| :--------------: | :---------: |
| template mention |   1000000   |
| service mention  |   500000    |

So it is probably that the time is up to the limitation.

It is necessary to develop the another way as the backup way to run.

---

### Commits history

- https://github.com/Cha0s0000/SteemitWechatBot/commit/dfab36f9071c08b5b6d51d811d93326d6af54375

  Add another way to bind steemit account with the wechat account.Check if a wechat account has been binded to a steemit account or not .

  ​

- https://github.com/Cha0s0000/SteemitWechatBot/commit/aaa057aacb2c425f397c51b8ce50eb291109ffcf

  Create the backup way of mention by using a wechat official service api. As the background says , there is limitation of the number of the official api request times , so  before sending mention message to a wechat user check it is enough to use the official api.If it runs out of the times limitation ,just use the backup way to mention users for their related information.

  ​

- https://github.com/Cha0s0000/SteemitWechatBot/commit/44b555cbe92cfd0d265bd10422e835595773622f

   According to the data got after request to api by steem python , classify different categories into vote , comment ,post ,follow,transfer,delegate so that uses would select the prefer category to receive the mention message .

   ​

-  https://github.com/Cha0s0000/SteemitWechatBot/commit/b2127a9f2289f7a99c7f2cd5f1b76d203fcff53b

   To communicate with the wechat official server , we need to valid the data and check Signature as the format official provided

   ​

-  https://github.com/Cha0s0000/SteemitWechatBot/commit/94e2c8e1d76b29272dac2cf793951f893c83f3fc

   Get wehcat account openid which is the unique of every users then save into database .The openid is necessary when we send mention message to wechat users.

   ​

   ​


---

## Roadmap

- Promote the efficiency of the bot
- Select the mention category of different users.
- Add more function with sending command to wechat public account
- Register a formal Wechat public service account to replace my testing account.

---

## How to contribute?

Github: <https://github.com/Cha0s0000/SteemitWechatBot>

- Fork it!
- Create your feature branch: `git checkout -b my-new-feature`
- Commit your changes: `git commit -am 'Add some feature'`
- Push to the branch: `git push origin my-new-feature`
- Submit a pull request.

👍  , , , , , , , , , ,
properties (23)
authorcha0s0000
permlinkstemmit-mention-tool-add-service-mention-as-the-backup-of-the-template-mention-way-and-add-another-bind-funciton
categoryutopian-io
json_metadata"{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":122182492,"name":"SteemitWechatBot","full_name":"Cha0s0000/SteemitWechatBot","html_url":"https://github.com/Cha0s0000/SteemitWechatBot","fork":false,"owner":{"login":"Cha0s0000"}},"pullRequests":[],"platform":"github","type":"development","tags":["utopian-io","dev","steemit","steemdev","steemstem"],"links":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1520773997/wkk2vtxohikqoi1vtiyp.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774009/bm9pzjky2y0jojsnq5cz.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774020/pyz3w4jz5rmo10kfgwi6.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774033/li7xccerzn8t33e4wnpm.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774051/hwtdgqpm7mr9uxlosjt9.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774062/dnhhlsydjtkvfnma3aiu.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774073/aeknerrygnkkouv0va9k.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774087/nf8mbhud1nggyra6tsbv.png"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1520773997/wkk2vtxohikqoi1vtiyp.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774009/bm9pzjky2y0jojsnq5cz.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774020/pyz3w4jz5rmo10kfgwi6.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774033/li7xccerzn8t33e4wnpm.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774051/hwtdgqpm7mr9uxlosjt9.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774062/dnhhlsydjtkvfnma3aiu.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774073/aeknerrygnkkouv0va9k.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1520774087/nf8mbhud1nggyra6tsbv.png"],"moderator":{"account":"mkt","time":"2018-03-15T18:33:56.109Z","flagged":false,"reviewed":true,"pending":false},"questions":[{"question":"Is the project description formal?","answers":[{"value":"Yes it’s straight to the point","selected":true,"score":10},{"value":"Need more description ","selected":false,"score":5},{"value":"Not too descriptive","selected":false,"score":0}],"selected":0},{"question":"Is the language / grammar correct?","answers":[{"value":"Yes","selected":true,"score":20},{"value":"A few mistakes","selected":false,"score":10},{"value":"It's pretty bad","selected":false,"score":0}],"selected":0},{"question":"Was the template followed?","answers":[{"value":"Yes","selected":true,"score":10},{"value":"Partially","selected":false,"score":5},{"value":"No","selected":false,"score":0}],"selected":0},{"question":"How do you rate the amount of work?","answers":[{"value":"Very High","selected":true,"score":20},{"value":"High","selected":false,"score":16},{"value":"Medium","selected":false,"score":12},{"value":"Low","selected":false,"score":7},{"value":"Very Low","selected":false,"score":3}],"selected":0},{"question":"How do you rate the impact on the Project?","answers":[{"value":"Very High","selected":true,"score":20},{"value":"High","selected":false,"score":16},{"value":"Medium","selected":false,"score":12},{"value":"Low","selected":false,"score":7},{"value":"Very Low","selected":false,"score":3}],"selected":0}],"score":50}"
created2018-03-11 13:37:51
last_update2018-03-15 18:34:00
depth0
children4
last_payout2018-03-18 13:37:51
cashout_time1969-12-31 23:59:59
total_payout_value34.034 HBD
curator_payout_value14.777 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,752
author_reputation30,983,518,016,225
root_title"Stemmit mention tool -- add service mention as the backup of the template mention way and add another bind funciton"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id43,706,846
net_rshares18,342,049,364,077
author_curate_reward""
vote details (11)
@justyy ·
$0.06
Your contribution cannot be approved because it is not as informative as other contributions. See the [Utopian Rules](https://utopian.io/rules). Contributions need to be informative and descriptive in order to help readers and developers understand them.

We feel this is too small contribution and therefore we only accept your [other post](https://utopian.io/utopian-io/@cha0s0000/microsteemit-on-wechat-application-add-post-detail-page-and-menu-to-select-pages).

Please try to improve your post content as I find quite a few mistakes. Also, please could you link your PR next time as it will be easier to identify your contributions.

You can contact us on [Discord](https://discord.gg/uTyJkNm).
**[[utopian-moderator]](https://utopian.io/moderators)**
👍  
properties (23)
authorjustyy
permlinkre-cha0s0000-stemmit-mention-tool-add-service-mention-as-the-backup-of-the-template-mention-way-and-add-another-bind-funciton-20180313t201838128z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-03-13 20:18:48
last_update2018-03-13 20:18:48
depth1
children0
last_payout2018-03-20 20:18:48
cashout_time1969-12-31 23:59:59
total_payout_value0.047 HBD
curator_payout_value0.014 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length756
author_reputation280,616,224,641,976
root_title"Stemmit mention tool -- add service mention as the backup of the template mention way and add another bind funciton"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id44,214,399
net_rshares21,168,380,889
author_curate_reward""
vote details (1)
@mkt · (edited)
$1.20
Thank you for updating the contribution. It is now deemed sufficient for the reward and has been approved.

You can contact us on [Discord](https://discord.gg/uTyJkNm).
**[[utopian-moderator]](https://utopian.io/moderators)**
👍  ,
properties (23)
authormkt
permlinkre-cha0s0000-stemmit-mention-tool-add-service-mention-as-the-backup-of-the-template-mention-way-and-add-another-bind-funciton-20180315t183553437z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-03-15 18:35:57
last_update2018-03-15 18:37:48
depth1
children1
last_payout2018-03-22 18:35:57
cashout_time1969-12-31 23:59:59
total_payout_value0.974 HBD
curator_payout_value0.228 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length225
author_reputation45,513,283,519,678
root_title"Stemmit mention tool -- add service mention as the backup of the template mention way and add another bind funciton"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id44,645,964
net_rshares344,041,605,523
author_curate_reward""
vote details (2)
@utopian.tip ·
Hey @mkt, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!
properties (22)
authorutopian.tip
permlinkre-re-cha0s0000-stemmit-mention-tool-add-service-mention-as-the-backup-of-the-template-mention-way-and-add-another-bind-funciton-20180315t183553437z-20180315t221212
categoryutopian-io
json_metadata""
created2018-03-15 22:12:15
last_update2018-03-15 22:12:15
depth2
children0
last_payout2018-03-22 22:12:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length153
author_reputation238,310,597,885
root_title"Stemmit mention tool -- add service mention as the backup of the template mention way and add another bind funciton"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id44,673,172
net_rshares0
@utopian-io ·
### Hey @cha0s0000 I am @utopian-io. I have just upvoted you!
#### Achievements
- You have less than 500 followers. Just gave you a gift to help you succeed!
- Seems like you contribute quite often. AMAZING!
#### Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a>
- Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses)

**Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
properties (22)
authorutopian-io
permlinkre-cha0s0000-stemmit-mention-tool-add-service-mention-as-the-backup-of-the-template-mention-way-and-add-another-bind-funciton-20180315t212339609z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-03-15 21:23:39
last_update2018-03-15 21:23:39
depth1
children0
last_payout2018-03-22 21:23:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,085
author_reputation152,955,367,999,756
root_title"Stemmit mention tool -- add service mention as the backup of the template mention way and add another bind funciton"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id44,666,671
net_rshares0