BDCommunity Discord Bot

in #utopian-io7 years ago

bdcommunity-discord-bot.png

STEEM.com.bd Community or @bdcommunity is a discovery, support, and curation project for Bangladeshi STEEM Blockchain users. The community runs a Discord bot using this project for managing the server and giving upvotes to worthy contents.

Repository

https://github.com/CodeBull/BDCommunityDiscordBot

Features

  • Steem account information
  • STEEM and SBD price in multiple currencies
  • Report, Ban, Kick abusers
  • Clear messages by count
  • Request and approval of upvote from the community bot and trail.
  • Default commands from Discord.js Commando.

Usage

$accountinfo <STEEM USERNAME>

Shows SP, reputation, post count, voting power, steem and sbd balances, delegation, and profile picture.

$price <CURRENCIES>

Returns STEEM and SBD prices in requested currencies. Default is BTC,USD,BDT.

$request-upvote <STEEMIT CONTENT LINK>

Make a request for upvote from the community bot and trail by saving the link in a specific channel from which Admins and moderators can approve for upvoting.

$upvote <STEEMIT CONTENT LINK>

Upvote content. Can be used by Admins and Moderators but runs internally by approving using white-check-mark emoji (✅) in requests-log channel.

$report <MEMBER> <REASON>

Report specified user to the moderators and saves a report on abuse-reports channel.

$ban <MEMBER> <REASON>

Ban specified user and saves a log in actions-log channel.

$kick <MEMBER> <REASON>

Kick specified user and saves a log in actions-log channel.

$clear <NUMBER OF MESSAGES>

Deletes previous 50 messages if no count is delivered.

Technology

  • Node JS
  • SQLite3
  • Discord.js
  • Discord.js Commando
  • dsteem

Installation

Create a Discord app, make it a bot, and grab it's Token by following this link.

Make these channels (names can be changed in source code) along with your other channels:

  • abuse-reports
  • requests-log
  • actions-log

Also make these roles (can be changed in src/config.js) for members:

  • Admin
  • Moderator
  • Explorer
  • Creator

Make required changes in src/config.js and in .env.example then rename it to .env. Don't for get to change BOT_OWNER_ID to your discord user ID. This will give you admin access to the bot. In production set environment variables with PM2 or others.

Use npm start in development, npm run build to compile the source code with Babel, then run npm run serve in production.

Roadmap

This project is in its infancy. I am planning to add more commands and improve existing ones specially to help moderators do their job easily.

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue or any other method with the (owner) of this repository. But you are free to make your own copy and use it.

Sort:  

Thank you for your contribution. I feel the commands added in the bot is not unique in any sense because there are quite a few discord bot which does similar things. We would like you to continue working on it to make it unique. Also it is very hard for us to know the actual work done if you upload the files and not commit directly in github.


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

Thank you for your feedback. It is a new project, that is why I just uploaded all the files directly into GitHub. Yes, there are many bots like this, but I haven't found any using Discord.js Commando library. So, I made one hoping others can use it as a reference and obviously I am going to add more functionalities to it with comprehensive commit history.

Thank you once again.

I think thats a good initiative u have taken, to help BD community grow. I will let my friends know about your project...they are also doing something similar but its for art community. you can check them at @steemcanvas

well all the good wishes to you and your team..have fun!!

That is awesome. We all have to try and develop our community. Thank you for your kind words. Do join us on our Discord Server. We will help each other and grow together.

Congratulations! This post has been upvoted by @bdcommunity. It's a curation and support project for Bangladeshi content creators. Please find us at the STEEM.com.bd Discord Channel.

YOU JUST GOT UPVOTED

Congratulations,
you just received a 48.61% upvote from @steemhq - Community Bot!

Wanna join and receive free upvotes yourself?
Vote for steemhq.witness on Steemit or directly on SteemConnect and join the Community Witness.

This service was brought to you by SteemHQ.com

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by reazuliqbal from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.