These files are intended to function as a multi-functional tipbot for Bitcoin With Spectrum (BWS)
- discord.py installed
- Python 3.6+
- A MySQL database
- The BWS wallet w/ RPC enabled.
- 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
These instructions were used to create a working bot in March 2018. Once a VPS is obtained, follow these instructions.
These instructions will help you install and setup a mySQL database
sudo apt-get install mysql-server
When prompted, set up a password for root.
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.
systemctl status mysql.service
You should see a status message that says "active (running)".
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
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
sudo ln -s /usr/bin/python3.6 /usr/local/bin/python3
Install the discord library used for the bot
python3 -m pip install -U discord.py
pip install PyMySQL