Stephard 2.0: bug fix before making it use in Qurator Channel
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.
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.
- The username start with lowercase
- 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.
A regex added to solve misuse of
*reg
command.
- 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.
- Before the user is added to database, using the regex to match what is happening
Proof of contribution
About this Projects
Stephard version 2.0
Designed by Freepik
What is the project about?
This project is building a bot calledstephard
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.- stephard-2-reg superoo7/oo7-discord-reg
- stephard-2 superoo7/oo7-discord
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 Utopian.io - Rewarding Open Source Contributors
Hey @superoo7 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
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.
[utopian-moderator]
@codingdefined , Alright, I will try to add more things next time. Thanks for approval.
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!!! 😃
Nice effort again!
Thanks man!
@superoo7 Woah, it's almost done. Well done bro, we're all proud of your achievement here...
Thanks man.
Good suggestion 👍🏼