-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathSPARTAN
68 lines (58 loc) · 2.22 KB
/
SPARTAN
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
_python_() {
python3${pVer%.*} -c "$1"
}
_SPARTANBOT_MAIN() {
$(_python_ 'from git import Repo
import sys
_UPSTREAM_ = "https://github.com/SPARTENX-OP/SPARTENXBOT"
_BRANCH_ = "master"
repo = Repo.init()
origin = repo.create_remote("temponame", _UPSTREAM_)
origin.fetch()
repo.create_head(_BRANCH_, origin.refs[_BRANCH_])
repo.heads[_BRANCH_].checkout(True) ')
}
_spartan_repo () {
local hrepo
hrepo=`echo "aHR0cHM6Ly9naXRodWIuY29tL0xFR0VORFhUSEFOT1MvVUxUUk9OVVNFUkJPVA==" | base64 -d`
echo "$rlink"
}
_spartan_zip () {
echo "aHR0cHM6Ly9naXRodWIuY29tL0xFR0VORFhUSEFOT1MvVUxUUk9OVVNFUkJPVC9hcmNoaXZlL21hc3Rlci56aXA=" | base64 -d
}
_SPARTANBOT_PLUG() {
local hrepo=$(_ultron_repo)
$(_python_ 'from git import Repo
import sys
_UPSTREAM_ = "'$hrepo'"
_BRANCH_ = "master"
repo = Repo.init()
origin = repo.create_remote("temponame", _UPSTREAM_)
origin.fetch()
repo.create_head(_BRANCH_, origin.refs[_BRANCH_])
repo.heads[_BRANCH_].checkout(True) ')
}
_starter () {
local spartanpath
spartanpath="SPARTANUSERBOT.zip"
echo "╔════❰𓆩༒𝕾𝖙𝖆𝖗𝖙𝖎𝖓𝖌 𝕾𝖕𝖆𝖗𝖙𝖆𝖓𝕭𝖔𝖙𓆩༒❱═❍⊱❁"
echo "║╭━━━━━━━━━━━━━━━➣"
echo "║┣⪼𓆩༒ 𝕾𝖕𝖆𝖗𝖙𝖆𝖓𝕭𝖔𝖙 𝖀𝖑𝖙𝖗𝖆 𝕻𝖔𝖜𝖊𝖗𝕱𝖚𝖑𝖑༒𓆪"
echo "║┣⪼𓆩༒𝕺𝖜𝖓𝖊𝖗 𝕺𝖋 𝕾𝖕𝖆𝖗𝖙𝖆𝖓𝕭𝖔𝖙 ༒𓆪"
echo "║╰━━━━━━━━━━━━━━━➣"
echo "╚══════════════════❍⊱❁۪۪"
wget -q $(_spartan_zip) -O "$spartanpath"
SPARTANPATH=$(zipinfo -1 "$spartanpath" | grep -v "/.");
unzip -qq "$spartanpath"
rm -rf "$spartanpath"
# _SPARTANBOT_MAIN
cd $SPARTANPATH
# _SPARTANBOT_PLUG
python3 ../setup/updater.py ../requirements.txt requirements.txt
echo "╭━━━━━━━━━━━━━━━➣"
echo "║┣⪼𝕷𝖔𝖆𝖉𝖎𝖓𝖌. 𝕾𝖕𝖆𝖗𝖙𝖆𝖓𝕭𝖔𝖙 𝕻𝖔𝖜𝖊𝖗𝕱𝖚𝖑𝖑 𝕽𝖔𝕭𝖔𝖔𝖙"
echo "╰━━━━━━━━━━━━━━━➣"
python3 -m UltronBot
}
_starter