Apollø is a JavaScript based Discord bot that runs on discord.js and DisTube. This bot is a reworked and improved version of JavaSkripp - from scratch. Apollø supports music, utility, entertainment and moderation commands.
Warning
I recommend using JSON files for now.
.env files are parsed as strings, causing some of the config values to be interpreted incorrectly.
- Install Node.js
- Download latest Apollo.zip release
- Extract the Apollo-main folder to your desired location
- Go inside the repository folder Apollo-main
- Create or fill up a config file from the templates given in the directory you want to install Apollo. All configurations in the JSON files are also in the .env file (will ignore JSON files if .env is present). JSON files must be in <REPO_FOLDER>/config/ while .env must be in <REPO_FOLDER>/
- Install dependencies
npm i - Run the program
node .
- Create or fill up a config file from the templates given in the directory you want to install Apollo. All configurations in the JSON files are also in the .env file (will ignore JSON files if .env is present)
- Simply copy, paste and run the code below to your linux terminal. It automatically handles dependency installation, installation updates, copying of config files, runs the client and sets the global node version to use for future use cases.
curl -s -LO https://raw.githubusercontent.com/Jed556/Apollo/main/__misc__/apollo.sh && chmod u+x apollo.sh && ./apollo.sh && nvm use --lts --silent node- Expand
./apollo.shcontents below to see available flags.
For bash script apollo.sh flags.
Flags can be added with or without dash ( ./apollo.sh -h / ./apollo.sh h ).
Examples of multiple flag declaration formats are: separated ( -h -n / h n ), block ( -hnl / hnl ).
| Flag | Description |
|---|---|
| Script related | |
| h | Display Help |
| a | Hide Art |
| n | Run script normally (No arguments / Defaults) and execute additional flags |
| l | Use one log file for errors and output |
| Repository related | |
| s | Update Self |
| c | Clone repository |
| File management related | |
| F | Copy configs & manage files |
| X | Clean-up files ( logs | temps | cache ) |
| U | Update all dependencies |
| S | Update system dependencies |
| G | Update global dependencies |
| L | Update package dependencies |
| Y | Try to update package dependencies using Yarn |
| Run related | |
| r | Start or restart |
| t | Tail logs |
These dependencies are required in certain circumstances
-
# Keep alive npm i forever surge -g # FFMPEG (Audio player) sudo apt install ffmpeg # Canvas builder sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev # Puppeteer sudo apt install -y gconf-service libgbm-dev libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
-
npm i ffmpeg-static



