Agreement
You are not to publish this code to the public under any circumstance. It is private, and if found on the web you may be held liable in court. Xiao is not licensed, meaning her code is completely under copyright. No one is allowed to use any part of her code under any circumstance unless given explicit permission from the copyright holder.
I, as the copyright holder, grant you the ability to use it as a reference point for your projects and allow you to use the code as a learning tool. You may take ideas and reformat code into another library, but you may not simply copy and self-host the code, unless the bot using it is COMPLETELY PRIVATE. This means it cannot be added to any servers but those of the bot owner.
If a public bot is found using Xiao's code it will be reported to Discord and removed.
Please don't push to the repository. It will simply be reverted and your rights to view it will be removed. Git is a powerful tool, so don't try your luck on this one.
Installing
Only Linux-based systems can run Xiao. She will not run on Windows or Mac.
- Install Node.js (you will need at least v15.0.0).
- Run
apt install gitto install 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. - Run
apt updateandapt 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
apt install wineto install wine. - Run
dpkg --add-architecture i386to allow installation of wine32. - Run
apt updateagain. - Run
apt install wine32to install wine32. - Run
apt install xvfbto install xvfb. - Run
npm i --productionin the folder you cloned the bot. - Run
npx parse-domain-updateto update the domain list forparse-domain. - Run
npm i -g pm2to install PM2. - Run
pm2 start Xiao.js --name xiaoto run the bot.