Skip to content

Commit 7b49ce1

Browse files
authored
Add initial build
1 parent 323bf6a commit 7b49ce1

27 files changed

+7768
-24
lines changed

LICENSE

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
MIT License
2-
3-
Copyright (c) 2022 crackhub213
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
MIT License
2+
3+
Copyright (c) 2022 crackhub213
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
This program is Licensed under the [MIT License](https://tldrlegal.com/license/mit-license) Meaning you can modify, distribute and sell this as much as you want.
2-
3-
> The work is provided "as is". You may not hold the author liable.
1+
This program is Licensed under the [MIT License](https://tldrlegal.com/license/mit-license) Meaning you can modify, distribute and sell this as much as you want.
2+
3+
> The work is provided "as is". You may not hold the author liable.
4+
![Figure it out fool](https://i.imgur.com/HlTilNF.png)

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Starts the sharding process
2+
require('./src/sharding');

install_and_run.sh

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
echo "WARNING: This script will overwrite your current nodeJS version. Do you want to automatically install all requirements? (y/n)"
2+
read answer
3+
if answer == "y"
4+
then
5+
echo "Beginning installation..."
6+
sudo apt install -y curl
7+
echo "Installed: cURL"
8+
sudo apt install -y python3-pip
9+
echo "Installed: pip"
10+
sudo apt install -y ffmpeg
11+
echo "Installed: ffmpeg"
12+
sudo apt install p7zip-full
13+
echo "Installed: 7-Zip"
14+
curl https://rclone.org/install.sh | sudo bash
15+
echo "Installed: rclone"
16+
wget https://github.com/yt-dlp/yt-dlp/releases/download/2022.02.04/yt-dlp && chmod +x yt-dlp && sudo mv yt-dlp /usr/local/bin/yt-dlp
17+
echo "Installed: yt-dlp"
18+
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
19+
source ~/.profile
20+
nvm install 16.13.1 && nvm use 16.13.1
21+
echo "Installed: nodeJS v16.13.1"
22+
pip3 install streamrip
23+
echo "Installed: streamrip"
24+
echo "Opening streamrip config in default editor, add your accounts and edit your settings!"
25+
rip config --open
26+
echo "Running npm install"
27+
npm install
28+
echo "Running pip3 install"
29+
pip3 install -r zspotify-reqs.txt
30+
echo "Do you want to run the bot now? (y/n)"
31+
read answer
32+
if answer == "y"
33+
then
34+
echo "Do you want to run the bot in dev mode or production mode ?(d/p)"
35+
read answer
36+
if answer == "d"
37+
then
38+
echo "Running in dev mode (refreshes on save)"
39+
npm run dev
40+
else
41+
echo "Running in production mode"
42+
npm run start
43+
fi
44+
fi
45+
else
46+
echo "Exiting..."
47+
fi

0 commit comments

Comments
 (0)