Stephard 2.0: bug fix before making it use in Qurator Channel

in utopian-io •  9 months ago

Stephard was requested to be implemented into @qurator's discord channel post-promo. Currently, the moderators of @qurator are still testing it before make it into use.

A few days ago, I implemented Stephard into #teammalaysia discord channel and I had found a few known bugs. You can read more about previous post here.

Designed by Freepik

Bug Fixes

What was the issue(s)?

  • The user registered in discord channel with all kinds of weird method but the bot can only accept *reg superoo7. Unaccepted method such as *reg @superoo7, *reg <superoo7> and *reg Superoo7, which caused the database to store wrong information.
    Screen Shot 2018-01-20 at 11.06.27 AM.png
    The bug happens in #teammalaysia discord group
  • There is no way to see what other discord user and steem user relation.

What was the solution?

  • A new regex is added to solve the issue of user not register correctly. The regex is /^[a-z][a-z0-9\-\.]+$/ where it will check:
    • The username start with lowercase a-z
    • Ended up with combination of a-z, 0-9, - and .
  • A webpage is added to see which discord user is link to which steemit username.

New Features

  • What feature(s) did you add?
    • A webpage is added. Screen Shot 2018-01-20 at 10.56.12 AM.png

    • A regex added to solve misuse of *reg command.Screen Shot 2018-01-20 at 10.58.18 AM.png

  • How did you implement it/them?
    • Before the user is added to database, using the regex to match what is happening username.match(/^[a-z][a-z0-9\-\.]+$/).
    • A webpage is added for visualize.

Proof of contribution

Check out github commits
Screen Shot 2018-01-20 at 11.01.55 AM.png

About this Projects

Stephard version 2.0

Designed by Freepik

  • What is the project about?
    This project is building a bot called stephard that will prevent discord user in our channel abuse post-promo. The on going goal is to create a upvote bot based on the post-promo channel, and upvotes post that shared by our community.

  • Technology Stack

    • Node.js
    • Babel
    • MongoDB
    • Hosting at Digital Ocean (Ubuntu 1GB RAM)
  • Roadmap

    • Prevent abuse of post-promo channel by implementing a bot [DONE]
    • Show steem username link to discord name
    • Implement Upvote Bot that automatically upvote based on link in post-promo channel
  • How to contribute?
    This project is under MIT License with 2 Github Repository, feel free to send in issues and Pull Request.

What's Next?

  • Adding Test into the workflow. Considering using Mocha for BDD.
  • After this, I will start building upvote bot in #teammlaysia channel.

Posted on - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hey @superoo7 I am @utopian-io. I have just upvoted you!


  • 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. 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


Thanks for supporting the community.

Thank you for the contribution. It has been approved. As I can see it is just a Regex change, I would accept it but for future contribution try to justify the Reward by adding a lot of feature in a single contribution.

You can contact us on Discord.


@codingdefined , Alright, I will try to add more things next time. Thanks for approval.

Nice effort again!


Thanks man!

@superoo7 Woah, it's almost done. Well done bro, we're all proud of your achievement here...


Thanks man.

Bravo!!! Good one!!! Thanks!


Thanks recommended


Ya indeed a good read! Thanks u mentioned it during meet-up.


Welcome my dear friends!!! Good article must share!!! 😃

Good suggestion 👍🏼