SHARE
TWEET

Untitled

a guest Jun 20th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. function redMessage {
  4.     echo -e "\\033[36;1m${@}\033[0m"
  5. }
  6.  
  7. function greenMessage {
  8.     echo -e "\\033[32;1m${@}\033[0m"
  9. }
  10.  
  11. function kekMessage {
  12.     echo -e "\\033[36;1m${@}\033[0m"
  13. }
  14.  
  15. if [ -z $1 ] || [ -z $2 ] || [ -z $3 ]; then
  16.   clear
  17.   kekMessage "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
  18.   greenMessage "• SNKBOTS | Beispiel: ./FightPvP.sh <Name> <ServerIP> <TS3Identität> <Channel> <Channel Passwort>"
  19.   greenMessage "• SNKBOTS | Für <Channel> und <ChannelPW> werden keine argumente benötigt."
  20.   kekMessage "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
  21.     exit 0
  22. fi
  23.  
  24. # Info | Coder
  25. VERSION=1.0
  26. CODER='Joshua Samenfink'
  27.  
  28. # Info | Installer
  29. NAME=$1
  30. SERVERIP=$2
  31. TS3IDENTITAET=$3
  32. CHANNEL=$4
  33. CHANNELPW=$5
  34.  
  35. clear
  36. greenMessage "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
  37. kekMessage   ""
  38. redMessage   "             TS3AudioBot Installer"
  39. kekMessage   ""
  40. kekMessage   " Version   : v$VERSION"
  41. kekMessage   " Script von : $CODER"
  42. kekMessage   ""
  43. greenMessage "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
  44. sleep 4
  45. clear
  46. sleep 1
  47. redMessage "20%"
  48. sleep 2
  49. apt update -y
  50. sleep 2
  51. redMessage "40%"
  52. sleep 2
  53. apt install wget sed screen -y
  54. sleep 2
  55. clear
  56. redMessage "60%"
  57. sleep 2
  58. wget ffmpeg-install
  59. chmod +x ffmpeg-install
  60. ./ffmpeg-install --install
  61. rm -rf ffmpeg-install
  62. clear
  63. redMessage "80%"
  64. sleep 2
  65. apt install apt-transport-https dirmngr gnupg ca-certificates -y
  66. apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
  67. echo "deb https://download.mono-project.com/repo/debian stable-stretch main" > /etc/apt/sources.list.d/mono-official-stable.list
  68. apt update -y >/dev/null
  69. apt install mono-devel libopus-dev youtube-dl -y
  70. clear
  71. redMessage "100%"
  72. sleep 2
  73. clear
  74. redMessage "Dateien erstellen, herunterladen ändern etc.."
  75. sleep 4
  76. # ts3audiobot herunterladen
  77. wget https://dl.capex.ml/TS3AudioBot-Template.tar.gz
  78. # entpacken
  79. tar -xvzf TS3AudioBot-Template.tar.gz
  80. rm -rf TS3AudioBot-Template.tar.gz
  81. mv TS3AudioBot-Template $NAME
  82. # ordner erstellen usw
  83. mkdir -p /opt/TS3AudioBot/
  84. mv $NAME /opt/TS3AudioBot/
  85. cd /opt/TS3AudioBot/$NAME/
  86. sed -i 's/TS3AudioBot-Template/'"$NAME"'/g' starter.sh
  87. sed -i 's/TS3AudioBot-Template/'"$NAME"'/g' ts3audiobot.toml
  88. sed -i 's/ServerIP/'"$SERVERIP"'/g' ts3audiobot.toml
  89. sed -i 's/Channel/'"$CHANNEL"'/g' ts3audiobot.toml
  90. sed -i 's/KanalPW/'"$CHANNELPW"'/g' ts3audiobot.toml
  91. sed -i 's/TS3Identitaet/'"$TS3IDENTITAET"'/g' rights.toml
  92. sed -i 's/ServerIP/'"$SERVERIP"'/g' Bots/bot_default.toml
  93. chmod +x starter.sh
  94. chmod +x mono.sh
  95. redMessage "Starte TS3AudioBot..."
  96. ./starter.sh
  97. sleep 3
  98. clear
  99. redMessage "Erfolgreich den TS3AudioBot gestartet!"
  100. sleep 3
  101. clear
  102. redMessage "Gehe in den Screen... | Zum verlassen STRG+A+D drücken!"
  103. sleep 4
  104. screen -r $NAME
  105. redMessage "Erfolgreich installiert."
  106. exit 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top