bili-bot
Discord bot for playing Bilibili video
Installation
NodeJs
version >= v10
1. Install FFMpeg
library
2. Install On macOS:
brew install ffmpeg
On Debian-Linux:
apt-get install ffmpeg
Make sure ffmpeg executable is in system PATH
environment variable
3. Install and run MongoDB
On macOS:
brew tap mongodb/brew
brew install mongodb-community
brew services start mongodb-community
On Debian-Linux
Refer to https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/
Make sure mongod
service is running before starting the bot.
4. Install dependency
npm install
Configuration
Create a json file under root directory named botconfig.json
:
{
"discordToken": "<YOUR TOKEN HERE>",
"mongoUri": "mongodb://localhost:27017 (or your custom URI)"
}
Run
npm start