sudo apt update && sudo apt upgrade -y
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - && \
sudo apt-get install nodejs -y && \
echo -e "\nnodejs > $(node --version).\nnpm >>> v$(npm --version).\n"
cd
git clone https://github.com/tarabukinivan/shadeumtelegramfaucet
cd shadeumtelegramfaucet
npm i
install mysql locally.
create database 'sui_bot'
create user 'sui_user' and give all privileges
Set up connection in ./request/my_sql_connect.js
add 'shardbot' table:
CREATE TABLE shardbot (
id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
userid VARCHAR(15) NOT NULL,
wallet VARCHAR(42) DEFAULT NULL,
timestamp VARCHAR(15) DEFAULT 0
);
create env settings file and enter private key and telegram token cp .env.sample .env nano .env