| Server IP : 104.129.129.72 / Your IP : 216.73.216.229 Web Server : LiteSpeed System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : answe8064 ( 1002) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /opt/installer/apps/ |
Upload File : |
#!/bin/bash
if [ -f "include/startup.sh" ]; then
. include/startup.sh
elif [ -f "../include/startup.sh" ]; then
. ../include/startup.sh
fi
rootDir=$(rootDir)
echo "Installing Python3-pip" | log
installPackage python3-pip | log
waitOrStop 0 "Failed to install python3-pip"
echo "Installing discord.py" | log
pip install discord.py
waitOrStop 0 "Failed to install discord.py"
mkdir -p /opt/discord/
pip freeze > /opt/discord/requirements.txt
echo "Copying default bot template" | log
cp $rootDir/tweaks/extras/discord/bot.py /opt/discord/
echo "Adding descriptions" | log
descriptionAppend "Discord-bot default folder: /opt/discord"
descriptionAppend "Default bot.py lcoation: /opt/discord/bot.py"
descriptionAppend "Make sure to set your Token and Guild variables in bot.py"
descriptionAppend " "
tagScript success
exit 0