mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
0705eae25b3a37de7ec6f8f3e7b7294dc7bfff47
Installing
Before You Begin
- Make sure you have installed Node.js (you will need at least v15.0.0) and Git.
- Clone this repository with
git clone https://github.com/dragonfire535/xiao.git. - Run
cd xiaoto move into the folder that you just created. - Create a file named
.envand fill it out as shown in.env.example.
Windows
- Follow these instructions to install the dependencies for
node-canvas. - Follow these instructions to install ffmpeg.
- Install ImageMagick.
- Follow these instructions to install Redis. Remember to set up a password!
- Download the NSFW model and extract the contents to
<xiao folder>/tf_models/nsfw. - Run
npm i --productionin the folder you cloned the bot. - Run
npm i -g pm2to install PM2. - Run
pm2 start Xiao.js --name xiaoto run the bot.
Mac
- Use a real (cheaper!) OS to host your bot.
- ???
- Profit.
Ubuntu and other Debian-based systems
- Run
apt update. - Run
apt upgradeto install the latest dependencies of your distro. - Run
apt install pythonto install python. - Run
apt install ffmpegto install ffmpeg. - Follow these instructions to install the dependencies for
node-canvas. - Run
apt install liblqr-1-0-dev liblqr-1-0to install liblqr (needed for ImageMagick). - Follow these instructions to install ImageMagick.
- Follow these instructions to set up Redis. Remember to set up a password!
- Run
apt install libtoolso sodium can compile if necessary. (Optional) - Download the NSFW model and extract the contents to
<xiao folder>/tf_models/nsfw. - Run
npm i --productionin the folder you cloned the bot. - Run
npm i -g pm2to install PM2. - Run
pm2 start Xiao.js --name xiaoto run the bot.
Description
Xiao is a Discord bot coded in JavaScript with discord.js. With over 500 commands, she is one of the most feature-rich bots out there. Formerly XiaoBot.
Languages
JavaScript
99.9%