Prerequisites
To host any Discord bot, including iHorizon, you must meet certain prerequisites. Most of these concern software or libraries necessary for the bot to function properly.
Operating Systems
iHorizon is compatible with:
- macOS (latest version recommended)
- Linux (all distributions with a good frequency of system updates)
- Windows (latest version recommended)
macOS is only available on Apple computers (unless you perform specific manipulations, which are against Apple's terms of use). For greater flexibility, we recommend choosing Linux, as it can be installed on any computer — even on a virtual machine — providing an optimal development environment. macOS and Windows are still valid options, and iHorizon will work the same on all supported OSes.
Required Software
iHorizon requires the following software to be installed:
- git — https://git-scm.com/downloads
- bun — https://bun.sh
A few commands also call system programs. Without them the bot runs, and only those commands fail:
| Package | Used by |
|---|---|
ffmpeg |
The Convert to MP4 context-menu command (audio file to video) |
melt and xvfb |
The video meme commands (+kawaeine, +two-sides, +rap-vs-reality), rendered with Kdenlive's engine |
fonts-noto-color-emoji |
Color emojis for the system programs above (the installation script adds it too) |
On Debian or Ubuntu: sudo apt install ffmpeg melt xvfb fonts-noto-color-emoji. To keep the bot running in the background with pm2, you will also need Node.js (see Starting the Bot).
Installation
1. Clone the repository
Clone the iHorizon GitLab repository to your machine:
2. Install dependencies
Navigate into the cloned directory and install the required dependencies (such as discord.js, among others):
Once this is done, move on to Configuration to set up your bot token and other options.