Stephard v5.0: Complete rewrite Phase 1 (Registration and Moderator)

in #utopian-io6 years ago (edited)

Stephard bot is a discord bot that automate task for prevent abuse checking quality of content in post promo channel. Currently the previous source code is written over 2 repository, and I planned to rewrite it and combined both into 1 repo, instead of 2.

img.png

Currently, this source code already being implemented into #teammalaysia discord channel and full replaced the previous repo. In this phase 1, I completely rewrite and reimplemented superoo7/oo7-discord-reg. In the phase 2 (next contribution), I will be rewriting and implementing superoo7/oo7-discord into this bot.

Previous repository

Repository

Current repository: superoo7/stephard

Screen Shot 2018-05-13 at 9.32.34 AM.png

New Features

  • What feature(s) did you add?
    • Complete rewrite from JavaScript into TypeScript
    • Added testing with Jest
      Screen Shot 2018-05-13 at 9.24.44 AM.png
    • Better UI of chat message with embed message (and color indicating success or failure)
      Screen Shot 2018-05-12 at 11.30.34 PM.png
    • During registration, check wether the username exist on steemit
      Screen Shot 2018-05-13 at 9.35.35 AM.png
  • How did you implement it/them?
    • Previously the bot is written with Babel Javascript, the complete rewrite in TypeScript which helps in the speed of development and also make the project more scalable, as TypeScript offer Compile Time Type Checking.
    • Using testing and MVC concept, the code are now more scalable and more maintainable in terms of long run.

Screen Shot 2018-05-13 at 9.37.04 AM.png

in the main src file

'model' file are for storing database model

'controller' file are for CRUD operations

'router' file are how the bot setup between different channel and being trigger by * symbol. Each channel are represented in each folder, where template are common file used between all the router.

Screen Shot 2018-05-13 at 9.43.56 AM.png

In the router file

About this Projects

  • What is the project about?

A discord bot that allows user to share their post on post-promo channel. To ensure that everyone has an equal exposure, the bot will had a quality check, cooldown period, and rewarded with an upvote. If the post does not fulfils the requirement, the message on discord will be either be deleted or the message will be diverted to pending for review channel.

There is also moderator channel for checking, banning and unbanning users.

  • Technology Stack

Node.js, TypeScript, MongoDB, Jest

  • Roadmap

    • Complete rewrite of superoo7/oo7-discord and implemented it into this discord bot.
    • Make the bot easier to deploy and setup, for the ease of others using my bot.
    • Add more test coverage.
  • How to contribute?

Currently the bot is under development of rewriting, you can send in Pull Request or Issue Filling on this github repo.

superoo7/stephard

GitHub Account

https://github.com/superoo7/stephard/tree/master/src/router

Sort:  

Thank you for your contribution, though its good that you have re-written the code in the newer technology but it is not unique in any sense. Also the additional features added are less, please try to add features too along with refactoring or rewriting the code.

Link to the Answers of the Questionnaire -

Click here


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you moderator. I understand the concern of being less feature being added, the main added feature will be done in the next contribution.

You've been upvoted by TeamMalaysia community. Here are trending posts by other TeamMalaysia authors at http://steemit.com/trending/teammalaysia

To support the growth of TeamMalaysia Follow our upvotes by using steemauto.com and follow trail of @myach

Vote TeamMalaysia witness bitrocker2020 using this link vote for witness

Hey @superoo7
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.35
TRX 0.12
JST 0.040
BTC 70541.68
ETH 3582.21
USDT 1.00
SBD 4.74