This bot will sit in the member list of the Discord server and display USD/BTC price of Element (HYP) and it's % movement over 24 hours.
Build a new blank Linux 18.04 (Bionic Beaver) Virtual Machine
Allow "Software Updater" to cycle through and update
sudo apt-get update && sudo apt-get upgrade && sudo apt install git
sudo apt install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.7 -y
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1
sudo update-alternatives --set python /usr/bin/python3.7
sudo apt install python3-pip -y
sudo python -m pip install --upgrade pip
cd /home/username/
git clone https://github.com/anthonyrjwood/element_hyp_discord_price_bot.git
pip install -r requirements.txt
cd /home/username/Desktop/lab/element_hyp_discord_price_bot
python crypto_cache.py -v
nano crypto_config.yaml
HYP:
priceUnit:
- USD
- BTC
decimalPlace:
- 8
- 8
updateFreq: 60
discordBotKey:
guildId: 385895423073714187
CTRL + X
y
ENTER
python cfgi_run.py
Once you are familiar with running a single sidebar bot, you can run multiple bots concurrently by calling ./bot.sh
and kill all bots by calling ./kill.sh
. You might want to modify the commands in ./bot.sh
to suit your own needs.