Files
xiao/README.md
T
2021-03-27 10:57:12 -04:00

2.5 KiB

Installing

Before You Begin

  1. Make sure you have installed Node.js (you will need at least v15.0.0) and Git.
  2. Clone this repository with git clone https://github.com/dragonfire535/xiao.git.
  3. Run cd xiao to move into the folder that you just created.
  4. Create a file named .env and fill it out as shown in .env.example.

Windows

  1. Follow these instructions to install the dependencies for node-canvas.
  2. Follow these instructions to install ffmpeg.
  3. Install ImageMagick.
  4. Follow these instructions to install Redis. Remember to set up a password!
  5. Download the NSFW model and extract the contents to <xiao folder>/tf_models/nsfw.
  6. Run npm i --production in the folder you cloned the bot.
  7. Run npm i -g pm2 to install PM2.
  8. Run pm2 start Xiao.js --name xiao to run the bot.

Mac

  1. Use a real (cheaper!) OS to host your bot.
  2. ???
  3. Profit.

Ubuntu and other Debian-based systems

  1. Run apt update.
  2. Run apt upgrade to install the latest dependencies of your distro.
  3. Run apt install python to install python.
  4. Run apt install ffmpeg to install ffmpeg.
  5. Follow these instructions to install the dependencies for node-canvas.
  6. Run apt install liblqr-1-0-dev liblqr-1-0 to install liblqr (needed for ImageMagick).
  7. Follow these instructions to install ImageMagick.
  8. Follow these instructions to set up Redis. Remember to set up a password!
  9. Run apt install libtool so sodium can compile if necessary. (Optional)
  10. Download the NSFW model and extract the contents to <xiao folder>/tf_models/nsfw.
  11. Run npm i --production in the folder you cloned the bot.
  12. Run npm i -g pm2 to install PM2.
  13. Run pm2 start Xiao.js --name xiao to run the bot.