Stemmit mention tool -- Create a web UI to get Steemit account name from users
New Features
What feature(s) did you add?
Add a Web UI to get Steemit account name from users
Distribute random valid code to different Steemit account,which is used to confirm the Wechat account to send mention message.
How did you implement it/them?
SteemitWechatBot/V0.2/Interface/application/index/view/index/index.html
<!DOCTYPE HTML> <html> <head> <title>Steemit WechatBot</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="description" content="" /> <meta name="keywords" content="" /> <link rel="stylesheet" href="/thinkphp5-steemitmention/public/static/css/style.css" /> <link rel="stylesheet" href="/thinkphp5-steemitmention/public/static/css/style-wide.css" /> </head> <body> <div id="header"> <img src="/thinkphp5-steemitmention/public/static/images/1.png" alt="" /></a> <p>When there is new information about you <br /> get mention messages on Wechat</p> <br /> <form action = "{:url('index/getname')}" method="post"> <input type="text" name= "name" class="text" value="" placeholder="SteemitName" onfocus="this.value = '';" > <br><br/> <input type="submit" value="Start"> </form> </div> </body> </html>
Create a web UI to user input
SteemitWechatBot/V0.2/Interface/application/index/controller/Index.php
public function getname() { $inputdata = input('post.'); $SteemitName = $inputdata['name']; $validCode = random_code(); $data = ['steemitname' => $SteemitName, 'validcode' => $validCode]; db('steemitaccount')->insert($data); echo "<script language=JavaScript>alert(\"Send your valicCode to WechatBot. \\n \\nYour valid Code is : {$validCode}\");location.href='javascript:history.go(-1);';</script>"; }
Get Steemit account name then distribute valid code to user and save in the database
SteemitWechatBot/V0.2/Interface/application/index/common.php
Generate 8 random number
Roadmap
- Using the valid code to valid the Wechat account which is connected to the Steemit account and will get mention message.
- 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.
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
thanks for your mod work! @codingdefined
Hey @cha0s0000 I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
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