How To Deploy a Steem Discord BotsteemCreated with Sketch.

in #howto6 years ago (edited)

Discord, although currently a centralized corporation, is an excellent way to connect with people in the Steem ecosystem. If you would like a discord bot to curate Steemit links for your server, this guide is for you. The cost per month is around $2.50 us to $4.50 us for a VPS with 2GB ram.

Screenshot_2018-06-25_12-38-29.png

First, log into a VPS or linux shell, in this case I will be using Ubuntu 16.04. You also need to create a bot within discord. A full guide how to do this, is here.

Start with cloning into the bot's software.

sudo apt-get install git

git clone https://github.com/Jestemkioskiem/steem-sockobot.git

Next, you need to install python correctly. This is working for me on Ubuntu 16.04

cd steem-sockobot
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y python3-pip
sudo apt-get install build-essential libssl-dev libffi-dev python3-dev

Add your environmental variables by typing

sudo nano ~/.bashrc

Then enter the details to the bottom of the file

export SB_NAME="steem name
export SB_KEY="steem key"
export SB_TOKEN="discord token"

Run this command

source ~/.bashrc

Edit bot.py to how you want it to be. Making sure to change the following settings.

SERVER_ID = '413394798255407114' # Discord server's ID
ROLE_NAME = 'VIP' # Discord server's granted role name

Add your bot's username and fill out the details / password

sudo adduser discordbot

Change users over to discordbot with

su discordbot

Type

pip3 install discord coinmarketcap steem

Now you can run the bot with the command,

python3 bot.py

You can also run the bot in the background with,

python3 bot.py&

If you would like your bot to start with the server, try reading some solutions in this thread.

Don't forget to show the developer of this application some appreciation, if you liked this bot. @jestemkioskiem is the creator.

Sort:  

Good Work, glad you were able to figure this out for our community bot. Nice simple walkthrough I could probably do that even, thank you for this I am certain someone will find it useful.

Thank you D00k13. It takes a bit to learn but it is well worth the investment of time. That was my goal, I'm happy if this saves someone, somewhere a few minutes of research if they need to deploy a bot.

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by Graylan | gray00 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.