Over the weekend, I had been working on an update for @Steemph.cebu's bot. The bot added new feature where the admin can now adjust weightage base on their need and new discord channel for admin to curate a post without signing in the account.
New Features
What feature(s) did you add?
- Feature 1: Admin can change weightage of upvote on the post promo channel.
- Feature 2: A special channel for admin to upvote with a specific post.
How did you implement it/them?
- Feature 1:
- For changing the weightage, I created a global variable
weightage
, which by default value being set by theconfig.json
file.let weightage = config.weightage || 10;
- For changing the weightage, I created a global variable
- Feature 2:
- special channel code is in
src/admin.js
, and to use it externally, just like this:
- special channel code is in
- Feature 1:
if (msg.channel.id === config.mahaloChannel) {
// MAHALO
admin(
msg,
process.env.MAHALO,
process.env.MAHALO_POSTING
);
return;
}
About Projects
- What is the project about?
Steemph.cebu is a discord bot on @steemph.cebu channel. This bot ease the process of curation, instead of logging in account to upvote a specific post.
v1.0.0
This branch is created for anyone interested to implement basic $upvote
in their discord channel. (It works like minnowsupport channel)
This branch was requested by @jackmiller. He is interested in implementing the v1 of the bot for his discord channel.
- Using
$upvote <steemit link
to get upvote on your post.
- A customisable cooldown period.
- The cooldown is link with discord id.
v2.0.0
These are the features requested by @jassennessaj, automated curation for steemph.cebu community.
- Check current upvote weightage with
$info
and adjust upvote value for thev1.0.0
channel with$weightage <value>
(Only admin can change this)
- Added special channel for admin to upvote a post with a certain weightage. The command goes like this
<weightage 1-100> <steemit link>
- Technology Stack
Node.js with Babel, MongoDB
Roadmap
- Add in basic post quality check: post age, flag by cheetah/steem cleaner, stop voting when VP is too low
- Convert source code to TypeScript to enhance code quality and solved type issue
- Update Steem API when needed
- work on v1.0.0 to make in more easier to be used. (Considering building a docker compose)
How to contribute?
If you interested to implement v1.0.0 of the bot, you can contact me on Discord at superoo7#2609 .
Otherwise, the source code of the bot is hosted on GitHub at https://github.com/TeamMalaysia/Steemph.cebu , feel free to send in issue and Pull Request
Posted on Utopian.io - Rewarding Open Source Contributors