forked from Sploot-NFT/eth-whitelister-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·33 lines (24 loc) · 1.05 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
sudo mkdir /usr/local/bin/eth-whitelister
echo \{\} > /usr/local/bin/eth-whitelister/whitelist.json
echo Input Discord Bot token:
read -r token
echo Input Discord Application ID:
read -r application_id
echo Input admin role ID:
read -r admin_role
echo Input admin server:
read -r admin_server
echo Input deadline as Unix timestamp \(can be changed later\)
read -r deadline
sudo echo "{
\"open\": true,
\"admin_role\": \"$admin_role\",
\"admin_server\": \"$admin_server\",
\"application_id\": \"$application_id\",
\"token\": \"$token\",
\"deadline\": $deadline}" > /usr/local/bin/eth-whitelister/config.json
sudo curl -L -o /etc/systemd/system/eth-whitelister.service https://github.com/Sploot-NFT/eth-whitelister-bot/releases/download/latest/eth-whitelister.service
sudo curl -L -o /usr/local/bin/eth-whitelister/eth-whitelister https://github.com/Sploot-NFT/eth-whitelister-bot/releases/download/latest/eth_whitelister
sudo chmod +x /usr/local/bin/eth-whitelister/eth-whitelister
sudo systemctl enable eth-whitelister
sudo systemctl start eth-whitelister