Self-Hosting iHorizon
iHorizon is a completely free and open-source Discord bot. Its source code is accessible to everyone, allowing anyone to view, modify, and even redistribute it under a different name.
With iHorizon, you have the option to host the bot on your own machine or on external servers such as VPS (Virtual Private Servers), thanks to its open-source model.
Quick Install
The iHorizon Provisioning Script is only available for Ubuntu/Debian-based Linux distributions
The iHorizon Provisioning Script is designed for Ubuntu and Debian-based Linux distributions and we have no plans of expanding the support for other distributions. If you are using another operating system, please follow the manual installation steps instead.
The iHorizon Provisioning Script is currently only available in English
The iHorizon Provisioning Script is currently only available in English. The French language will be supported soon, we currently have no plans to support languages other than English and French. Throughout the installation, you are free to use an online translator to translate what the script says.
The iHorizon Provisioning Script automates the entire setup process (installing dependencies, cloning the repository, configuring the bot, and starting it) in a single command:
Run it as your normal user, not as root: it only uses sudo to install the missing system packages. It then:
- installs Bun, Node.js and pm2 when they are missing;
- clones the repository into
~/ihrz(productionordevbranch), or updates an existing checkout; - asks for your settings and writes them to
.env: secrets are typed hidden, IDs are checked, and the Lavalink and database URLs are built for you (see Configuration for every option); - checks the configuration with the bot's own parser before starting anything;
- starts iHorizon under pm2, either from the checkout (it updates itself with
git pullon every restart) or as a standalone binary built on your machine; - can make pm2 start the bot when the machine boots.
Running the script again updates the bot: you can keep your configuration (an old src/files/config.ts is moved into .env for you) or answer the questions again, in which case your current .env is backed up first.
Manual Install
If you prefer full control over each step, or need to troubleshoot a specific part of the setup, follow the pages below in order:
- Prerequisites: Operating system support, required software, and cloning the repository
- Configuration: Setting up your
.envfile with your bot token and other options - Starting the Bot: Running iHorizon and keeping it alive with pm2
- Standalone Binary (optional): Building iHorizon into a single executable
Regardless of which path you chose, the Common Issues page is available if you run into any problems.