Stephard v3.0: Added upvoting bot and some quality check

in #utopian-io6 years ago (edited)

Stephard is a project that used to prevent abuse in post promo channel in discord, and it is used by @qurator and @teammalaysia in the discord channel. In this update of version 3.0, it is being use on #TeamMalaysia Discord Channel.


DQmUCpANhusxWT2FncK1k7XHBjFrjXju7x6Drpf8icJSqkK.png

Proof of Contribution

Screen Shot 2018-02-21 at 11.49.28 AM.png

New Features

What feature(s) did you add?

  • The bot carry out quality check by:
    • Voted by cheetah bot

    • Contain a minimum amount of words. (current setting is 120 words)

    • If the person shares the link already, he/she cannot share it again.

    • Required #teammalaysia in the post.

    • Use of #steepshot, #decentmemes and #dmania tags are prohibited.
      Screen Shot 2018-02-21 at 12.02.45 PM.png

    • Make sure their post are not too new or too old. (Between 30 minutes to 3.5 days)

    • Upvote weightage scales with amount of content. Word count support both English and Chinese. (current setting 10%~20%)

  • The bot only work in post-promo channel.
  • Posting in discord post promo channel require a small amount of synopsis to explain their post.Word count support both English and Chinese.
  • Upvote bot setting up with @superoo7-dev and trailing (using steemauto) from @bitroker2020, @myach, @teammalaysia and etc.


Screen Shot 2018-02-21 at 12.03.22 PM.png

How did you implement it/them?

  • Make use of steem-upvote-util NPM library
  • Added new Regex for parsing links:
    • /[\u00ff-\uffff]|\S+/g to parse sentence in order to calculate number of words in English and Chinese.
    • /(https?:\/\/[^\s]+)/g to extract out links from the message from discord
    • /[\/#]/ to extract from the link, break the link into array and extract out the author and permlink.

About This Projects

What is the project about?

Stephard bot is a discord bot for #teammalaysia user to share their post in the channel. To ensure that user not abusing these channel, a bot is used to automate the task of the moderator. User will be rewarded with upvotes.

Version 1: Basic bot that prevent post promo based on discord old messages.

Version 2: Integrated database to prevent abuse.

Version 3: Added upvote feature with trailing.

Technology Stack

Node.js and MongoDB. The bot hosted on Digital Ocean with Linux Ubuntu.

Roadmap

  • Add a bot for Administration usage
  • Code Quality upgrade and testing

How to contribute?

This project is under MIT License with 2 Github Repository, feel free to send in issues and Pull Request/ I might create a new repo for admin bot.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thank you moderator.

Hey @vladimir-simovic, 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!

Lots of new fancy features added :)

Indeed, haahaa a lot of things need to work on also

Amazing what you did for the community @superoo7. Thank you for your hard work.

Thanks for your support, really appreciated

thank you for you effort SR7, you really help us alot with this

Good to have you for the discord url sharing. The group will grow better.

Thanks for your support

@superoo7 Thank you very much for keep working up with the Stephard bro :)

The bot now is more complicated hahaha, Might have an official rules for everyone to read

informative!! for #teammalaysia ..

Hi @superoo7 why don't you host in on heroku?

Heroku is will shut down for free tier plan. The paid tier is not really worth it.

You meant they won't let u run for 24 hr? There's limit of time usage? I didn't know that. I'm new myself. But I'm loving programming so far haha.

I host my personal website on Heroku with $9 package. Heroku only support PostgreSQL. So for more diversity, renting a Linux Server is easier

Coin Marketplace

STEEM 0.19
TRX 0.14
JST 0.029
BTC 63782.14
ETH 3146.14
USDT 1.00
SBD 2.55