dragonfire535 / xiao

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.
Other
11 stars 3 forks source link

Agreement

Just read LICENSE.md. Give credit if you use any part of this monster, thanks.

FAQ

Will Xiao ever be public again?

No.

Will Xiao ever support Slash Commands?

Most likely, no. Many of the commands in Xiao were written with the message content intent in mind, and given her status as a private bot I see no reason to change that. Plus, kitchen-sink bots really don't work with Slash Commands, they just clog up the list.

Can I use part of Xiao's code (i.e. a command) in my bot?

I don't really care, but please give credit in some form if you do so. You'll also be subject to LICENSE.md, and I won't provide you with any support if it doesn't work.

Can I host Xiao myself?

If you want, good luck. Setting her up is a pretty difficult task.

Do I need every API key, emoji ID, etc.?

No, but some commands may not work without them.

Do I need to set up Redis?

Yes, several commands and functions rely on it.

Do I really need to install Wine and Wine32 on Linux?

Only if you want to use the DECTalk command.

Where can I find DECTalk?

Good question! I don't even remember where I found it, and I really can't help you. While it's probably considered abandonware and I doubt anyone would go after a private Discord bot of all things, I'm not taking any chances.

Installing

Filling Out .env

Discord-related info

Redis info

Emojis IDs

API Keys, IDs, and Secrets

Run (Linux)

Install instructions below are for Linux. She should work on Windows, but I can't guarantee anything.

  1. Install Node.js.
  2. Run apt install git to install git.
  3. Clone this repository with git clone https://github.com/dragonfire535/xiao.git.
  4. Run cd xiao to move into the folder that you just created.
  5. Create a file named .env and fill it out as shown in above and in .env.example.
  6. Run apt update and apt upgrade to install the latest dependencies of your distro.
  7. Run apt install ffmpeg to install ffmpeg.
  8. Run apt install liblqr-1-0-dev liblqr-1-0 to install liblqr (needed for ImageMagick).
  9. Follow these instructions to install ImageMagick.
  10. Follow these instructions to set up Redis. Remember to set up a password!
  11. Download DECTalk and extract dectalk.dll, dtalk_us.dic, MSVCRTd.DLL, and say.exe to dectalk/. I cannot help you find this.
  12. Run apt install wine to install wine.
  13. Run dpkg --add-architecture i386 to allow installation of wine32.
  14. Run apt update again.
  15. Run apt install wine32 to install wine32.
  16. Run apt install xvfb to install xvfb.
  17. Run yarn install --production in the folder you cloned the bot.
  18. Run npx parse-domain-update to update the domain list for parse-domain.
  19. Start Xiao up!

Commands

Total: 514

Utility:

Utility (Voice):

Discord Information:

Random Response:

Random Image:

Seeded Randomizers:

Single Response:

Automatic Response:

Events:

Search:

Pokédex:

Analyzers:

Single-Player Games:

Multi-Player Games:

Face Manipulation:

Image Manipulation:

Image Text Manipulation:

Avatar Manipulation:

Meme Generators:

Text Manipulation:

Number Manipulation:

Play Audio:

Reminders:

Phone:

Cleverbot:

Other:

Credits

NPM Packages

Other Credits