DEVTOME.COM HOSTING COSTS HAVE BEGUN TO EXCEED 115$ MONTHLY. THE ADMINISTRATION IS NO LONGER ABLE TO HANDLE THE COST WITHOUT ASSISTANCE DUE TO THE RISING COST. THIS HAS BEEN OCCURRING FOR ALMOST A YEAR, BUT WE HAVE BEEN HANDLING IT FROM OUR OWN POCKETS. HOWEVER, WITH LITERALLY NO DONATIONS FOR THE PAST 2+ YEARS IT HAS DEPLETED THE BUDGET IN SHORT ORDER WITH THE INCREASE IN ACTIVITY ON THE SITE IN THE PAST 6 MONTHS. OUR CPU USAGE HAS BECOME TOO HIGH TO REMAIN ON A REASONABLE COSTING PLAN THAT WE COULD MAINTAIN. IF YOU WOULD LIKE TO SUPPORT THE DEVTOME PROJECT AND KEEP THE SITE UP/ALIVE PLEASE DONATE (EVEN IF ITS A SATOSHI) TO OUR DEVCOIN 1M4PCuMXvpWX6LHPkBEf3LJ2z1boZv4EQa OR OUR BTC WALLET 16eqEcqfw4zHUh2znvMcmRzGVwCn7CJLxR TO ALLOW US TO AFFORD THE HOSTING.

THE DEVCOIN AND DEVTOME PROJECTS ARE BOTH VERY IMPORTANT TO THE COMMUNITY. PLEASE CONTRIBUTE TO ITS FURTHER SUCCESS FOR ANOTHER 5 OR MORE YEARS!

Building a Devcoin Reddit Tipbot

Hello there! It's bass! So you want to start a tipbot for your coin? I can help! I have created 2 tipbots for reddit before, and it is super easy! Lets start!

What you'll need:

  1. A debian or ubuntu server or vps to run the bot with 1gb or more of RAM (if you don't have one, you can get one from https://www.digitalocean.com/?refcode=1977f040af6b)
  2. A reddit account, with REDDIT GOLD, for your bot
  3. Basic knowledge of the command line

Okay! Lets get to the fun part! SSH onto your vps and we'll install everything you need! Enter in these commands:

   sudo apt-get install python-setuptools python-dev markdown python-pip python-all debhelper python-mysqldb
   sudo pip install jinja2 praw sqlalchemy pyyaml stdeb

And now we install mysql:

   sudo apt-get install mysql-server php5-mysql
Make sure to use a secure password when prompted, and remember it. Now we set up mysql:
   sudo mysql_install_db
   sudo mysql_secure_installation
You will be asked to enter the password you set for the MySQL root account. Next, it will ask you if you want to change that password. If you are happy with your current password, type “n” for “no” at the prompt.

For the rest of the questions, you should simply hit the “ENTER” key through each prompt to accept the default values. This will remove some sample users and databases, disable remote root logins, and load these new rules so that MySQL immediately respects the changes we have made.

At this point, your database system is now set up and we can move on.

Now we install your coin's daemon (I am writing this for devcoin, alter for other coins):

   sudo apt-add-repository ppa:bitcoin/bitcoin
   sudo apt-get update
   sudo apt-get install libdb4.8-dev libdb4.8++-dev build-essential libboost-all-dev libssl-dev git
   cd
   git clone https://github.com/coinzen/devcoin.git
   cd devcoin/src
   make -f makefile.unix USE_UPNP=-

When that finishes compiling type ”./devcoind”. That will fail and tell you that you need to set a username and password and give you a sample username and password.

Type in:

   cd
   cd .devcoin
   nano devcoin.conf
A text editor will open up, and we now enter a few things for our daemon.
   rpcuser={enter the sample username}
   rpcpassword={enter the sample password}
   rpcport= 53333
   server=1
   daemon=1
Now type control-x and y to save it. Now we go back to devcoin and start it.
   cd ../devcoin/src
   ./devcoind
Now the daemon is running and we can move on.

clone altcointip

   cd
   git clone http://github.com/whitj00/altcointip

install pifkoin

   cd
   git clone https://github.com/dpifke/pifkoin
   cd pifkoin
   make
   sudo make install
   cd
   ln -s pifkoin/python altcointip/src/ctb/pifkoin

setup altcointip

   cd ~/altcointip
   mysql -u root -p
You will be prompted for a password, enter the one you entered when we setup mysql:
   CREATE DATABASE tipbot;
   use tipbot;
   source altcointip.sql;
   exit
Now we have everything setup for the bot to run! Now it's time to customize the bot, so we have to enter the conf files.
   cd src
   cp conf-sample conf -r
   cd conf
First, let's edit the username and password the bot uses to communicate with the mysql server.
   nano db.yml
This will open up a text editor. You need to edit the third line and enter in your mysql password we've been using a few times in this tutorial between the quotation marks. When you're done, hit control+x and press y to save your changes. Now lets edit your reddit settings.
   nano reddit.yml
First change 'mybotuser' and 'mybotpass' to your bots username and password, respectively. Then, on line 16, change YOUR_NAME to your reddit account (not the bot's) so that users can contact you if they have any issues. On line 38, change 'mybotuser' to your bots username. Now close and save your file, and we will move on to our last configuration file.
   nano regex.yml
On line 9, change both instances of mybotuser to your bot's name. Your bot is now ready to run! Type:
   cd altcointip/src
Now, to run the bot type:
   sh _start.sh
See https://github.com/whitj00/altcointip for how the startup should look. If you want the bot to keep running when you exit terminal or your server type:
   nohup sh _start.sh &

Thats the tutorial! ~Bass

Original copy-paste

Hello there! It's bass! So you want to start a tipbot for your coin? I can help! I have created 2 tipbots for reddit before, and it is super easy! Lets start! What you'll need: 1) A debian or ubuntu server or vps to run the bot with 1gb or more of RAM (if you don't have one, you can get one from https://www.digitalocean.com/?refcode=1977f040af6b) 2) A reddit account for your bot (Note: The account MUST have reddit gold 3) Basic knowledge of the command line Okay! Lets get to the fun part! SSH onto your vps and we'll install everything you need! Enter in these commands:

   apt-get -y install aptitude
   aptitude update
   aptitude -y dist-upgrade
   aptitude -y install python-setuptools python-dev markdown
   easy_install pip
   pip install jinja2 praw sqlalchemy yaml
And now we install mysql:
   sudo apt-get install mysql-server php5-mysql
Make sure to use a secure password when prompted, and remember it. Now we set up mysql:
   sudo mysql_install_db
   sudo mysql_secure_installation
You will be asked to enter the password you set for the MySQL root account. Next, it will ask you if you want to change that password. If you are happy with your current password, type “n” for “no” at the prompt. For the rest of the questions, you should simply hit the “ENTER” key through each prompt to accept the default values. This will remove some sample users and databases, disable remote root logins, and load these new rules so that MySQL immediately respects the changes we have made. At this point, your database system is now set up and we can move on. Now we install your coin's daemon (I am writing this for devcoin, alter for other coins):
   sudo apt-get update && sudo apt-get upgrade
   sudo apt-get install libdb4.8-dev libdb4.8++-dev build-essential libboost-all-dev git
   git clone --depth=1 https://github.com/coinzen/devcoin.git
   cd devcoin/src
   make -f makefile.unix USE_UPNP=-
When that finishes compiling type ”./devcoind”. That will fail and tell you that you need to set a username and password and give you a sample username and password. Type in:
   cd
   cd .devcoin
   nano devcoin.conf
A text editor will open up, and we now enter a few things for our daemon.
   rpcuser={enter the sample username}
   rpcpassword={enter the sample password}
   rpcport= 53333
   server=1
   daemon=1
Now type control-x and y to save it. Now we go back to devcoin and start it.
   cd ../devcoin/src
   ./devcoind
Now the daemon is running and we can move on. Type “cd” and then type “git clone https://github.com/dpifke/pifkoin” To set it up type:
   cd pifkoin
   make
   python setup.py
   cd
   ln -s pifkoin/python altcointip/src/ctb/pifkoin
And that concludes initial setup! Its all easier from here! Type:
   git clone http://github.com/whitj00/altcointip
   cd altcointip
   mysql -u root -p
You will be prompted for a password, enter the one you entered when we setup mysql:
   CREATE DATABASE tipbot;
   use tipbot;
   source altcointip.sql;
   exit
Now we have everything setup for the bot to run! Now it's time to customize the bot, so we have to enter the conf files.
   cd src
   cp conf-sample conf -r
   cd conf
First, let's edit the username and password the bot uses to communicate with the mysql server.
   nano db.yml
This will open up a text editor. You need to edit the third line and enter in your mysql password we've been using a few times in this tutorial between the quotation marks. When you're done, hit control+x and press y to save your changes. Now lets edit your reddit settings.
   nano reddit.yml
First change 'mybotuser' and 'mybotpass' to your bots username and password, respectively. Then, on line 16, change YOUR_NAME to your reddit account (not the bot's) so that users can contact you if they have any issues. On line 38, change 'mybotuser' to your bots username. Now close and save your file, and we will move on to our last configuration file.
   nano regex.yml
On line 9, change both instances of mybotuser to your bot's name. Your bot is now ready to run! Type:
   cd altcointip/src
Now, to run the bot type:
   sh _start.sh
See https://github.com/whitj00/altcointip for how the startup should look. If you want the bot to keep running when you exit terminal or your server type:
   nohup sh _start.sh &

Thats the tutorial! ~Bass


QR Code
QR Code building_a_devcoin_reddit_tipbot (generated for current page)
 

Advertise with Anonymous Ads