Skip to content

himse1f/SpectrumBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BWS-Tip-Bot

These files are intended to function as a multi-functional tipbot for Bitcoin With Spectrum (BWS)

Requirements

  • discord.py installed
  • Python 3.6+
  • A MySQL database
  • The BWS wallet w/ RPC enabled.

Functions

  • Display general wallet information
  • Display individual user balances
  • Store user balance information in database
  • Generate new deposit addresses for users
  • Automatically add users to database
  • Allow users to withdraw coins from the wallet with respect to how many coins they have in the DB

Instructions

These instructions were used to create a working bot in March 2018. Once a VPS is obtained, follow these instructions.

mySQL

These instructions will help you install and setup a mySQL database

Install mySQL

sudo apt-get install mysql-server

When prompted, set up a password for root.

Configure mySQL Security

mysql_secure_installation

Press "Y" and ENTER to accept all the questions, with the exception of the one that asks if you'd like to change the root password.

Verify mySQL is Running

systemctl status mysql.service

You should see a status message that says "active (running)".

Update Python

Python should be updated to version 3.6 because version 3.5 is not compatible with some libraries

sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt update
sudo apt-get install python3.6
sudo apt-get install python3.6-dev
sudo apt-get install python3.6-venv

Install Python's pip

Python's pip is a useful tool used to install python libraries

wget https://bootstrap.pypa.io/get-pip.py
sudo python3.6 get-pip.py

Link python3 to python3.6

sudo ln -s /usr/bin/python3.6 /usr/local/bin/python3

Install Discord Library

Install the discord library used for the bot

python3 -m pip install -U discord.py

Install PyMySQL Library

pip install PyMySQL

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Shell 0.1%