-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall.txt
48 lines (36 loc) · 1.31 KB
/
install.txt
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
34
35
36
37
38
39
40
41
42
43
44
45
46
sudo apt-get update
sudo apt-get upgrade
# TS3 audio bot:
# 1) .NET:
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y apt-transport-https && sudo apt-get update
sudo apt-get install -y dotnet-runtime-3.1
# 2) bot
sudo apt-get install libopus-dev ffmpeg
mkdir -p TS3-bot && cd TS3-bot
# Copy TS3 bot binaries to the folder
# Copy TS3 bot config files to the folder
# Test bots are ok with dotnet TS3AudioBot.dll
# Mongodb:
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
systemctl enable mongod.service
sudo systemctl start mongod
# Test mongo is ok with mongo
# Restore the db from archive with mongorestore
# discord bot:
git clone https://github.com/yakMM/POG-bot.git
sudo apt-get install pipenv
cd POG-bot
pipenv install
pipenv shell
exit
echo "alias pog=/home/ubuntu/POG-bot/commands/pog.sh" > .bash_aliases
chmod a+x POG-bot/commands/pog.sh
# Copy secret files in POG-data/secret
pog update