-
Notifications
You must be signed in to change notification settings - Fork 3
How to Install
Web Installer is now out ⭐ might make your life a bit easier 😊 |
---|
Before starting, you'll need a couple of things:
- Install these software into your server/pc:
- node.js LTS - at least version 18 - or in Ubuntu Linux https://github.com/nodesource/distributions?tab=readme-ov-file#using-ubuntu
-
git - or in Ubuntu Linux, use
apt install git
- npx - by entering this into Command Prompt
npm install -g npx
after installing node.js
- Of course, your own Discord bot tokens. Create a bot here if you still didn't have one: Discord Developer Portal — My Applications. Create a new application, and bot for the new application.
- Your own OpenAI or NLPCloud API keys. Get OpenAI key here: Sign Up for OpenAI) OR NLPcloud Sign Up for NLPCloud)
- A MongoDB server OR cloud. Get it here: MongoDB Cloud Database (Official). Then get the URI / connection string. They looks like this:
mongodb+srv://yourownuser:[email protected]/?retryWrites=true&w=majority
- LTS version of Node.js: Download | Node.js (nodejs.org)
- Twitch Client ID and Client Secret. Get it here: Twitch Developers - Twitch API v5
- (optional) Genius token - if you want the lyrics feature: http://genius.com/api-clients
- (non-optional) A little bit of patience. Keep calm and learn to ask for help. Read the instructions properly,
⚠️ DO NOT SKIP A SINGLE PART. No matter how smart you think you are⚠️
There are two choices to download the files. Use the git command. Skip this if you already have the files.
git clone https://github.com/RirikoAI/RirikoBot.git
OR Use the npx command:
npx ririko RirikoBot
OR Just download the zip files from the releases page: Releases · RirikoAI/RirikoBot (github.com)
Open your command prompt and change directory to where you downloaded / cloned Ririko:
cd RirikoBot
Install the dependencies (including the dev dependencies):
npm install --dev
- Copy
.env.example
into.env
- Run the bot to open the Web Installer
npm run start:dev
- Follow the tutorial on the Web Installer
Alternatively, you can also configure the config file manually, by copying config.example.js
into config.js
.
Also good to note that .env
file will override config.js
file (for deployments). Upgrading to a major version (e.g from 0.13.0 to 0.14.0) will require a reconfiguration.
FFMPEG is required to be installed manually on Linux-based distros. Please follow these steps to get the Music bot working: (For Ubuntu/Debian based distros)
apt install ffmpeg
npm uninstall ffmpeg-static
npm uninstall ffmpeg
npm update
npm run start
Generally, if you've reached to this point, the bot should work already. It is also advisable to run the bot in production mode:
npm run build
npm run start:prod
Good luck, and enjoy!
If you believe there is a bug in the codes, please report them here: New Issue · RirikoAI/RirikoBot (github.com)