Skip to content

Shaii Self host Tutorial

Alexander Andhika S edited this page Jul 23, 2023 · 3 revisions

Introduction

On this wiki, we want to give you a tutorial about how to host Shaii on Windows & Linux machine.

Disclaimer

We are assuming that you already understand any of these, so if you got any errors then you should know what the current error you just occurred. You should fix the error by yourself. We DON'T provide direct installation support.

Prerequisite (On any machine)

  • Runtime Environment (Required)

    We recommend to use the latest LTS (Long-term Support) version.

  • Multimedia Library (Required)

    We don't recommend using ffmpeg-static, because ffmpeg-static is not stable.

  • Main Node.js Library (Required)
  • Opus Encoding Library (Required)
  • Encryption Packages (Only choose ONE)

    Hard to install, but it's better than libsodium-wrappers

    Easy to install, but not good as sodium

    Easy to install, but not good as libsodium-wrappers

  • Other Dependencies

    The @discordjs/rest dependency is for enabling the slash command feature. This dependency is optional to be installed, but if you want to use the slash command feature, this dependency MUST be installed.

  • Process Management (Optional)
    • If you want to make the bot run 24/7 (non-stop), you can install this dependency by typing npm install --global pm2 in your console

Installation Steps (Windows)

  1. All prerequisites MUST be done at first.
  2. Download the .zip file from Releases page. If you want to choose the stable version (production ready), download the file that has Latest tag. For the unstable version (non-production ready), download the file that has Pre-release tag.
  3. After the file got downloaded, then you should extract the .zip file.
  4. After extracting the file, now, you should edit the .env file first (bot token & prefix), and after you edit it, you can do a test run by typing node index.js command on your console.
  5. To make the bot run 24/7, first, you can type pm2 start index.js --name "Your Bot Name" command on your console.

Installation Steps (Linux)

Coming Soon!